24 lines
673 B
TypeScript
24 lines
673 B
TypeScript
import type { LucideIcon } from "lucide-react"
|
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
|
|
|
|
interface OrderStatsProps {
|
|
title: string
|
|
value: string
|
|
icon: LucideIcon
|
|
}
|
|
|
|
export default function OrderStats({ title, value, icon: Icon }: OrderStatsProps) {
|
|
return (
|
|
<Card>
|
|
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
|
|
<CardTitle className="text-sm font-medium">{title}</CardTitle>
|
|
<Icon className="h-4 w-4 text-muted-foreground" />
|
|
</CardHeader>
|
|
<CardContent>
|
|
<div className="text-2xl font-bold">{value}</div>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|
|
|