import { useAFFiNEI18N } from '@affine/i18n/hooks'; import { FlexWrapper, Modal, ModalCloseButton, ModalWrapper } from '../..'; 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', }, ]; export type ContactModalProps = { open: boolean; onClose: () => void; logoSrc: string; }; export const ContactModal = ({ open, onClose, logoSrc, }: ContactModalProps): JSX.Element => { const t = useAFFiNEI18N(); 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://community.affine.pro', }, ]; 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
); };