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

interface MetricCardElevenProps {
  metrics: Array<{ id: string; value: string; title: string }>;
  containerClassName?: string;
}

export const MetricCardEleven: React.FC<MetricCardElevenProps> = ({ metrics, containerClassName = '' }) => {
  const containerRef = useRef<HTMLDivElement>(null);
  const itemRefs = useRef<(HTMLDivElement | null)[]>([]);

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

  const { } = useCardAnimation(animationOptions);

  return (
    <div ref={containerRef} className={containerClassName}>
      {metrics.map((metric) => (
        <div key={metric.id} className="metric-item">
          <div className="value">{metric.value}</div>
          <div className="title">{metric.title}</div>
        </div>
      ))}
    </div>
  );
};

export default MetricCardEleven;
