import { BentoGrid, BentoGridItem } from "@/app/_components/ui/bento-grid"; import { DateTimePicker2 } from "@/app/_components/ui/date-picker"; import { createClient } from "@/app/_utils/supabase/server"; import { redirect } from "next/navigation"; import { BarChart3, Calendar, CreditCard, Globe, LineChart, MessageSquare, Settings, ShoppingCart, Users, } from "lucide-react"; 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 (
{/*

Dashboard Overview

*/} } colSpan="2" rowSpan="2" >
Chart Visualization
} >
{[1, 2, 3].map((i) => (

Order #{i}0234

2 mins ago

$149.99
))}
}>
{[1, 2, 3, 4, 5].map((i) => (
{i}
))}
+3
} colSpan="2" >
World Map Visualization
} >
{[1, 2].map((i) => (

Team Meeting

Tomorrow, 10:00 AM

))}
} >
24
-12% from last week
} >
{["Visa", "Mastercard", "PayPal"].map((method) => (
{method}
))}
} >
API Operational
Database Operational
Storage Degraded
) }