import { Box, BoxProps, Typography } from "@mui/material"; import { spreadSx } from "@src/utils/ui"; export interface IStepsProgressProps extends Partial { steps: number; value: number; } export default function StepsProgress({ steps, value, sx, ...props }: IStepsProgressProps) { return ( {Math.min(Math.max(value, 0), steps)}/{steps} {new Array(steps).fill(undefined).map((_, i) => ( theme.transitions.create("background-color"), }} /> ))} ); }