import { FlexWrapper, Modal, ModalCloseButton, ModalWrapper, } from '@affine/component'; import { useTranslation } from '@affine/i18n'; import logo from './affine-text-logo.png'; import { DiscordIcon, DocIcon, GithubIcon, LinkIcon, LogoIcon, RedditIcon, TelegramIcon, TwitterIcon, } from './Icons'; import { StyledBigLink, StyledLogo, StyledModalFooter, StyledModalHeader, StyledPrivacyContainer, StyledSmallLink, StyledSubTitle, } from './style'; const linkList = [ { icon: , title: 'GitHub', link: 'https://github.com/toeverything/AFFiNE', }, { icon: , title: 'Reddit', link: 'https://www.reddit.com/r/Affine/', }, { icon: , title: 'Twitter', link: 'https://twitter.com/AffineOfficial', }, { icon: , title: 'Telegram', link: 'https://t.me/affineworkos', }, { icon: , title: 'Discord', link: 'https://discord.gg/Arn7TqJBvG', }, ]; type TransitionsModalProps = { open: boolean; onClose: () => void; }; export const ContactModal = ({ open, onClose, }: TransitionsModalProps): JSX.Element => { const { t } = useTranslation(); const topLinkList = [ { icon: , title: t('Official Website'), subTitle: 'AFFiNE.pro', link: 'https://affine.pro', }, { icon: , title: t('Check Our Docs'), subTitle: 'Open Source', link: 'https://github.com/toeverything/AFFiNE', }, ]; const date = new Date(); const year = date.getFullYear(); return ( { onClose(); }} /> {topLinkList.map(({ icon, title, subTitle, link }) => { return ( {icon} {title} {subTitle} ); })} {t('Get in touch! Join our communities.')} {linkList.map(({ icon, title, link }) => { return ( {icon} {title} ); })} Copyright © {year} Toeverything Terms Privacy ); }; export default ContactModal;
{title}
{subTitle}
Copyright © {year} Toeverything