Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import clsx from 'clsx';
import React from 'react';
import './style.scss';
interface StepSectionProps {
heading: string;
stepCount?: number;
children: React.ReactNode;
className?: string;
}
export default function StepSection( {
stepCount,
heading,
children,
className,
}: StepSectionProps ) {
return (
<div className={ clsx( 'step-section', className ) }>
<div className="step-section__header">
{ !! stepCount && <div className="step-section__step-count">{ stepCount }</div> }
<div className="step-section__step-heading">{ heading }</div>
</div>
<div className="step-section__content">{ children }</div>
</div>
);
}