Alternative web application for the
pdsadmin command
1import { useIsLoggedIn } from "./atoms/session";
2import { AccountList } from "./components/account/account-list";
3import { ModalDialog } from "./components/modal/modal";
4import { Footer } from "./components/module/footer";
5import { Header } from "./components/module/header";
6import { PDSMenu } from "./components/module/pds-menu";
7import { SigninForm } from "./components/module/signin-form";
8import { Toaster } from "./components/ui/toaster";
9
10export function App() {
11 const isLoggedIn = useIsLoggedIn();
12 return (
13 <div className="bg-base-300">
14 <div className="bg-base-200 container mx-auto h-full min-h-dvh max-w-md p-4">
15 <div className="flex flex-col gap-4">
16 <Header />
17 {!isLoggedIn && <SigninForm />}
18 {isLoggedIn && (
19 <>
20 <PDSMenu />
21 <AccountList />
22 </>
23 )}
24 <Footer />
25 </div>
26 <ModalDialog />
27 <Toaster />
28 </div>
29 </div>
30 );
31}