import React, { useState } from "react";
function Section({ title, children }: { title: string; children: React.ReactNode }) {
return (
);
}
function ProgressBar({
value,
height = "h-2",
showLabel = false,
}: {
value: number;
height?: string;
showLabel?: boolean;
}) {
return (
{showLabel && (
Progress
{value}%
)}
);
}
export default function ProgressDemo() {
const steps = [0, 25, 50, 75, 100];
const [stepIndex, setStepIndex] = useState(0);
const cycle = () => {
setStepIndex((prev) => (prev + 1) % steps.length);
};
return (
);
}