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 { chatDisplayNameAtom, chatAuthenticatedAtom, accessTokenAtom, } from '../../stores/ClientConfigStore'; const { TabPane } = Tabs; export const AuthModal: FC = () => { const chatDisplayName = useRecoilValue(chatDisplayNameAtom); const authenticated = useRecoilValue(chatAuthenticatedAtom); const accessToken = useRecoilValue(accessTokenAtom); const federationEnabled = true; return (
null} > IndieAuth IndieAuth } key="1" > Fediverse auth FediAuth } key="2" >
); };