export default function ProgressBar({
    value,
    label,
}: {
    value: number;
    label: string;
}) {
    return (
        <div
            role="progressbar"
            aria-label={label}
            aria-valuemin={0}
            aria-valuemax={100}
            aria-valuenow={value}
            className="h-2 overflow-hidden rounded-full bg-surface-100"
        >
            <div
                className="h-full rounded-full bg-linear-to-r from-brand to-highlight"
                style={{ width: `${value}%` }}
            />
        </div>
    );
}
