import { type FC, type PropsWithChildren, type ReactNode, useEffect, useState, } from 'react'; import { Empty } from '../../ui/empty'; import { AffineOtherPageLayout } from '../affine-other-page-layout'; import { authPageContainer } from './share.css'; export const AuthPageContainer: FC< PropsWithChildren<{ title?: ReactNode; subtitle?: ReactNode }> > = ({ children, title, subtitle }) => { const [isSmallScreen, setIsSmallScreen] = useState(false); useEffect(() => { const checkScreenSize = () => { setIsSmallScreen(window.innerWidth <= 1024); }; checkScreenSize(); window.addEventListener('resize', checkScreenSize); return () => window.removeEventListener('resize', checkScreenSize); }, []); return (

{title}

{subtitle}

{children}
{isSmallScreen ? null : }
); };