import * as React from "react"; import * as Styles from "~/common/styles"; import * as SVG from "~/common/svg"; import * as Constants from "~/common/constants"; import { css } from "@emotion/react"; import { H5, P3 } from "~/components/system/components/Typography"; import { AnimatePresence, motion } from "framer-motion"; import { useEscapeKey, useLockScroll } from "~/common/hooks"; import { Preview } from "~/components/core/CollectionPreviewBlock/components"; import { Symbol } from "~/common/logo"; const STYLES_OVERLAY = (theme) => css` position: fixed; top: 0; left: 0; height: 100vh; width: 100%; background-color: ${theme.semantic.bgBlurBlackTRN}; ${Styles.CONTAINER_CENTERED}; z-index: ${theme.zindex.modal}; `; const STYLES_MODAL_WRAPPER = (theme) => css` min-width: 400px; padding: 24px; border: 1px solid ${theme.semantic.bgGrayLight}; border-radius: 16px; background: ${theme.system.white}; @supports ((-webkit-backdrop-filter: blur(75px)) or (backdrop-filter: blur(75px))) { -webkit-backdrop-filter: blur(75px); backdrop-filter: blur(75px); background: linear-gradient( 120.84deg, rgba(255, 255, 255, 0.85) 5.24%, rgba(255, 255, 255, 0.544) 98.51% ); } @media (max-width: ${theme.sizes.mobile}px) { min-width: auto; width: calc(100% - 32px); } `; const STYLES_PROFILE = css` display: block; ${Styles.HORIZONTAL_CONTAINER}; align-items: flex-start; `; const STYLES_DISMISS_BUTTON = (theme) => css` ${Styles.BUTTON_RESET}; color: ${theme.semantic.textGray}; `; // NOTE(amine): social buttons styles const STYLES_SOCIAL_BUTTON = (theme) => css` ${Styles.VERTICAL_CONTAINER_CENTERED} padding: 16px; border-radius: 12px; box-shadow: ${theme.shadow.lightLarge}; `; const STYLES_TWITTER_BUTTON = css` background-color: #58aee7; `; const STYLES_EMAIL_BUTTON = (theme) => css` background-color: ${theme.system.white}; `; const STYLES_TEXT_CENTER = css` text-align: center; `; const STYLES_PREVIEW = (theme) => css` width: 48px; max-width: 48px; height: 48px; border-radius: 12px; background-color: ${theme.semantic.bgLight}; ${Styles.CONTAINER_CENTERED} `; const EmptyFallbackPreview = () => { return (