import { AuthPageContainer } from '@affine/component/auth-components'; import type { GetInviteInfoQuery } from '@affine/graphql'; import { useI18n } from '@affine/i18n'; import { Avatar } from '../../ui/avatar'; import { Button } from '../../ui/button'; import { FlexWrapper } from '../../ui/layout'; import * as styles from './styles.css'; export const AcceptInvitePage = ({ onOpenWorkspace, inviteInfo, }: { onOpenWorkspace: () => void; inviteInfo: GetInviteInfoQuery['getInviteInfo']; }) => { const t = useI18n(); return ( {inviteInfo.user.name} {t['invited you to join']()} {inviteInfo.workspace.name} } > ); };