import { useMailStore } from './store/mailStore'
import Login from './pages/Login'
import Mail from './pages/Mail'

export default function App() {
  const token = useMailStore(s => s.token)
  return token ? <Mail /> : <Login />
}
