{/* Optional Call-to-action or additional details */}
{/*
*/}
);
};
const HowItWorks = ({ steps }) => {
const [activeStep, setActiveStep] = useState(0);
const containerRef = React.createRef();
// Optional Progress Bar for Steps
// You can implement this as a separate component or inline here.
return (
{/* Title Section */}
How It Works
{/* Steps Container */}
{steps.map((step, index) => (
setActiveStep(index)} // Change active step on hover
onMouseLeave={() => setActiveStep(0)} // Reset to first step when not hovering
>
{/* Render the Step Component here */}
))}