"use client" import * as React from "react" import { CheckCircle2, DollarSign, Package, Plus, ShoppingCart, Users } from "lucide-react" import { cn } from "@/lib/utils" import { RecentOrdersTable } from "@/components/dashboard/recent-orders-table" import { Button } from "@/components/ui/button" import { DatePicker, DateRangePicker } from "@/components/ui/date-picker" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/components/ui/dialog" import { AlertDialog, AlertDialogContent, AlertDialogTrigger, } from "@/components/ui/alert-dialog" import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/components/ui/breadcrumb" import { StatCard } from "@/components/ui/stat-card" import { toast } from "@/components/ui/toast" import LineChart from "@/components/ui/line-chart" import BarChart from "@/components/ui/bar-chart" import PieChart from "@/components/ui/pie-chart" const indigoButton = "rounded-full bg-indigo-50 text-indigo-700 hover:bg-indigo-100 focus-visible:ring-indigo-300/40" export default function DashboardPage() { const [date, setDate] = React.useState() const [range, setRange] = React.useState<{ from: Date | undefined; to?: Date | undefined }>() return (

Breadcrumb

{/* Basic */} Home Products Product Detail {/* With ellipsis */} Home Products Edit

Variants

Sizes

Date Picker

Single date
Date range
{(date || range?.from) && (

{date && <>Selected: {date.toLocaleDateString()}} {range?.from && ( <> {date && " · "} Range: {range.from.toLocaleDateString()} {range.to && <> – {range.to.toLocaleDateString()}} )}

)}

Modal

Open Modal} />
Order confirmed Your order has been placed successfully and is now being processed.

Toast

Alert Dialogs

Info} /> toast.info("Reloading...", "Applying the latest update.")} /> Success} /> toast.success("Done!", "Redirecting to dashboard.")} /> Warning} /> toast.warning("Changes discarded")} /> Delete} /> toast.error("Deleted", "The record has been permanently removed.")} />

Sales (Line)

Revenue (Bar)

Product Mix (Pie)

) }