import React from 'react';

export const CardSkeleton = (): JSX.Element => (
  <div className="bg-white rounded-xl border border-gray-200 p-5">
    <div className="flex flex-col gap-3">
      <div className="h-4 w-3/4 bg-gray-200 rounded animate-pulse" />
      <div className="h-6 w-1/2 bg-gray-200 rounded animate-pulse" />
      <div className="h-4 w-1/3 bg-gray-200 rounded animate-pulse" />
    </div>
  </div>
);

export const ChartSkeleton = (): JSX.Element => (
  <div className="bg-white rounded-xl border border-gray-200 p-5">
    <div className="flex flex-col gap-4">
      <div className="h-6 w-1/3 bg-gray-200 rounded animate-pulse" />
      <div className="space-y-2">
        {Array.from({ length: 6 }).map((_, i) => (
          <div key={i} className="h-4 bg-gray-200 rounded animate-pulse" />
        ))}
      </div>
    </div>
  </div>
);
