import React, { useState } from 'react'; import SignInForm from './SignInForm'; import SignUpForm from './SignUpForm'; interface PropTypes { logIn: (name: string, password: string) => Promise; } const AuthPage: React.FC = ({ logIn }) => { const [auth, setAuth] = useState('signIn'); return ( <> {auth === 'signIn' && } {auth === 'signUp' && } ); }; export default AuthPage;