import { JSX } from "preact";
import { type PublicUser } from "@/types.ts";
const NAV_ITEM_CLASSES =
"flex justify-center items-center px-4 py-2 hover:bg-gray-300 dark:hover:bg-gray-700";
const HEADER_CLASSES = "bg-gray-200 dark:bg-gray-800";
export function LoginNavItems() {
return (
<>
Register
Login
>
);
}
export function UserNavItems() {
return (
<>
Profile
Dashboard
Logout
>
);
}
export interface PageProps extends JSX.HTMLAttributes {
user?: PublicUser;
}
export function Page(props: PageProps) {
console.log("PageProps:", props);
return (
{props.children}
);
}