doctor-mail/apps/web/src/app/main/letter/index/page.tsx

12 lines
305 B
TypeScript
Raw Normal View History

2025-01-26 09:28:38 +08:00
import { useAuth } from "@web/src/providers/auth-provider";
import InboxPage from "../inbox/page";
import LetterListPage from "../list/page";
export default function IndexPage() {
const { user } = useAuth();
if (user) {
return <InboxPage></InboxPage>;
}
return <LetterListPage></LetterListPage>;
}