import { Tabs } from 'antd'; import { useRecoilValue } from 'recoil'; import { FC } from 'react'; import { IndieAuthModal } from '../IndieAuthModal/IndieAuthModal'; import { FediAuthModal } from '../FediAuthModal/FediAuthModal'; import FediverseIcon from '../../../assets/images/fediverse-black.png'; import IndieAuthIcon from '../../../assets/images/indieauth.png'; import styles from './AuthModal.module.scss'; import { currentUserAtom, chatAuthenticatedAtom, accessTokenAtom, } from '../../stores/ClientConfigStore'; export const AuthModal: FC = () => { const currentUser = useRecoilValue(currentUserAtom); if (!currentUser) { return null; } const authenticated = useRecoilValue(chatAuthenticatedAtom); const accessToken = useRecoilValue(accessTokenAtom); const federationEnabled = true; const { displayName } = currentUser; const indieAuthTabTitle = ( IndieAuth IndieAuth ); const indieAuthTab = ( ); const fediAuthTabTitle = ( Fediverse auth FediAuth ); const fediAuthTab = ( ); const items = [ { label: indieAuthTabTitle, key: '1', children: indieAuthTab }, { label: fediAuthTabTitle, key: '2', children: fediAuthTab }, ]; return (
null} />
); };