"use client" import { useState } from "react" import { PageHeader } from "@/components/shared/page-header" import { StatCard } from "@/components/dashboard/stat-card" import { RecentLeadsTable } from "@/components/dashboard/recent-leads-table" import { LeadStatusChart } from "@/components/dashboard/lead-status-chart" import { LeadsPerMonthChart } from "@/components/dashboard/leads-per-month-chart" import { dashboardStats } from "@/data/dashboard" import { Users, UserPlus, PhoneCall, Clock, CheckCircle2, TrendingUp, ListFilter, } from "lucide-react" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select" export default function DashboardPage() { const stats = dashboardStats const [period, setPeriod] = useState("6months") const statCards = [ { title: "Total Leads", value: stats.totalLeads, icon: Users, variant: "blue" as const, description: "All time" }, { title: "Open Leads", value: stats.openLeads, icon: UserPlus, variant: "blue" as const, description: "Needs attention" }, { title: "Contacted", value: stats.contactedLeads, icon: PhoneCall, variant: "amber" as const, description: "In conversation" }, { title: "Pending", value: stats.pendingLeads, icon: Clock, variant: "purple" as const, description: "Awaiting decision" }, { title: "Closed", value: stats.closedLeads, icon: CheckCircle2, variant: "emerald" as const, description: "Won" }, { title: "Conversion Rate", value: `${stats.conversionRate}%`, icon: TrendingUp, variant: "emerald" as const, description: `${stats.closedLeads} of ${stats.totalLeads} leads` }, ] return (
Pipeline Overview
Analytics