import React from "react"; import { ProductionCapacityIcon } from "../../icons/analysis"; const ProductionCapacity = () => { const totalBars = 6; const progressPercent = 50; const barsToFill = Math.floor((progressPercent / 100) * totalBars); const partialFillPercent = ((progressPercent / 100) * totalBars - barsToFill) * 100; return (
Throughput Summary
08:00 - 09:00 AM
128 Units/hour
{/* Progress Bar */}
{[...Array(totalBars)].map((_, i) => (
{i < barsToFill ? (
) : i === barsToFill ? (
) : null}
))}
Avg. Process Time 28.4 Secs/unit
Machine Utilization 78%
); }; export default ProductionCapacity;