37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { DateTimePicker2 } from "@/app/_components/ui/date-picker";
|
|
import { createClient } from "@/app/_utils/supabase/server";
|
|
import { redirect } from "next/navigation";
|
|
|
|
export default async function DashboardPage() {
|
|
// const supabase = await createClient();
|
|
|
|
// const {
|
|
// data: { user },
|
|
// } = await supabase.auth.getUser();
|
|
|
|
// if (!user) {
|
|
// return redirect("/sign-in");
|
|
// }
|
|
|
|
// console.log("user", user);
|
|
|
|
return (
|
|
<>
|
|
<header className="flex h-12 shrink-0 items-center justify-end border-b px-4 mb-2 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-8"></header>
|
|
<div className="flex flex-1 flex-col gap-4 p-4 pt-0">
|
|
<div className="grid auto-rows-min gap-4 md:grid-cols-3">
|
|
<div className="aspect-video rounded-xl bg-muted/50">
|
|
<pre className="text-xs font-mono p-3 rounded border overflow-auto">
|
|
{/* {JSON.stringify(user, null, 2)} */}
|
|
</pre>
|
|
|
|
</div>
|
|
<div className="aspect-video rounded-xl bg-muted/50" />
|
|
<div className="aspect-video rounded-xl bg-muted/50" />
|
|
</div>
|
|
<div className="min-h-[100vh] flex-1 rounded-xl bg-muted/50 md:min-h-min" />
|
|
</div>
|
|
</>
|
|
);
|
|
}
|