import React, { useRef } from 'react';
import { useCardAnimation, UseCardAnimationOptions } from '@/hooks/useCardAnimation';

interface ButtonCarouselProps {
  children: React.ReactNode;
  containerClassName?: string;
}

export const ButtonCarousel: React.FC<ButtonCarouselProps> = ({ children, containerClassName = '' }) => {
  const containerRef = useRef<HTMLDivElement>(null);
  const itemRefs = useRef<(HTMLDivElement | null)[]>([]);
  const bottomContentRef = useRef<HTMLDivElement>(null);

  const animationOptions: UseCardAnimationOptions = {
    containerRef,
    itemRefs,
    bottomContentRef,
  };

  const { } = useCardAnimation(animationOptions);

  return (
    <div ref={containerRef} className={containerClassName}>
      {children}
    </div>
  );
};

export default ButtonCarousel;
