first commit

This commit is contained in:
2025-12-30 15:03:19 +08:00
commit c735c36009
902 changed files with 83591 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
/**
* 庫存統計元件
* 顯示庫存總覽統計資訊
*/
import { AlertTriangle } from "lucide-react";
import StatsCard from "@/Components/shared/StatsCard";
interface InventoryStatsProps {
totalItems: number;
totalQuantity: number;
lowStockItems: number;
}
export default function InventoryStats({
totalItems,
totalQuantity,
lowStockItems,
}: InventoryStatsProps) {
return (
<div className="max-w-sm">
<StatsCard
label="庫存警告"
value={`${lowStockItems}`}
icon={AlertTriangle}
valueClassName={lowStockItems > 0 ? "text-red-600" : "text-green-600"}
/>
</div>
);
}