import React from "react"; import StyledProgress, { Bar } from "./StyledProgress"; import ProgressBunnyWrapper from "./ProgressBunnyWrapper"; import { ProgressBunny } from "../Svg"; import { ProgressProps, variants, scales } from "./types"; const stepGuard = (step: number) => { if (step < 0) { return 0; } if (step > 100) { return 100; } return step; }; const Progress: React.FC> = ({ className, variant = variants.ROUND, scale = scales.MD, primaryStep = 0, secondaryStep = null, showProgressBunny = false, useDark = true, children, }) => { return ( {children || ( <> {showProgressBunny && ( )} {secondaryStep ? : null} )} ); }; export default Progress;