import { cn } from "cn" import { TrendingDownIcon, TrendingUpIcon } from "lucide-react" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/styles/base-sera/ui/card" type Metric = { label: string value: string comparison: string change: string trend: "up" | "down" } const METRIC_CARDS: Metric[] = [ { label: "Total visitors", value: "248.5k", comparison: "12.4%", change: "vs last period", trend: "up", }, { label: "Unique readers", value: "182.1k", comparison: "8.7%", change: "vs last period", trend: "up", }, { label: "Avg. time on page", value: "3m 42s", comparison: "1.2%", change: "vs last period", trend: "down", }, { label: "Bounce rate", value: "42.8%", comparison: "3.5%", change: "vs last period", trend: "down", }, ] export function MetricsGrid() { return ( <> {METRIC_CARDS.map((metric) => ( ))} ) } function MetricCard({ metric, className, }: { metric: Metric className: string }) { return ( {metric.label} {metric.value} {metric.trend === "up" ? ( ) : ( )}{" "} {metric.comparison}{" "} {metric.change} ) }