(
({ items, activeId, variant = 'default', direction = 'vertical', showConnector = false, onDotClick, className, ...props }, ref) => {
const containerClasses = [
styles.container,
variant === 'gold' && styles.variantGold,
variant === 'minimal' && styles.variantMinimal,
direction === 'horizontal' && styles.horizontal,
showConnector && styles.withConnector,
className,
].filter(Boolean).join(' ');
const handleClick = (id: string, href?: string) => {
if (onDotClick) {
onDotClick(id);
}
if (href) {
const el = document.querySelector(href);
el?.scrollIntoView({ behavior: 'smooth' });
}
};
return (
{items.map((item) => (
))}
);
}
);
ProgressDots.displayName = 'ProgressDots';
export default ProgressDots;