Dashboard Componeets files are added some

This commit is contained in:
2026-07-14 13:20:26 +01:00
parent ca40bd4095
commit 4c8c537f9c
13 changed files with 499 additions and 20 deletions

View File

@@ -0,0 +1,21 @@
import { StatusProgressProps } from "@/constants/types";
export function StatusProgressRow({ label, value, total, barColor = "bg-[#17cbb5]" }: StatusProgressProps) {
const percentage = (value / total) * 100;
return (
<div className="space-y-2 py-1.5">
<div className="flex justify-between text-xs font-semibold">
<span className="text-white">{label}</span>
<span className="text-[#5b7391]">{value}/{total}</span>
</div>
<div className="bg-[#122238] h-3 rounded-full overflow-hidden">
<div
className={`${barColor} h-full rounded-full transition-all duration-500`}
style={{ width: `${percentage}%` }}
/>
</div>
</div>
);
}