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

interface FeatureCardSixteenProps {
  features: Array<{ id: string; title: string; description: string }>;
  containerClassName?: string;
}

export const FeatureCardSixteen: React.FC<FeatureCardSixteenProps> = ({ features, containerClassName = '' }) => {
  const containerRef = useRef<HTMLDivElement>(null);
  const itemRefs = useRef<(HTMLDivElement | null)[]>([]);
  const perspectiveRef = useRef<HTMLDivElement>(null);

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

  const { } = useCardAnimation(animationOptions);

  return (
    <div ref={containerRef} className={containerClassName}>
      {features.map((feature) => (
        <div key={feature.id} className="feature-item">
          <h3>{feature.title}</h3>
          <p>{feature.description}</p>
        </div>
      ))}
    </div>
  );
};

export default FeatureCardSixteen;
