import { cn, getIndexArray } from "~/shared/utils"; type ProgressProps = { value: number; // from 0 to 100 }; export const Progress = ({ value }: ProgressProps) => { const activeBars = Math.round((value / 100) * 25); return (
{getIndexArray(25).map((idx) => (
= activeBars, })} /> ))}
{value}%
); };