import Image, { StaticImageData } from "next/image";
import Link from "next/link";
import Heading from "@/app/components/ui/Heading";

interface VarietyCardProps {
  img: string;
  label: string;
  href: string;
}

export function VarietyCard({ img, label, href }: VarietyCardProps) {
  return (
    <Link
      href={href}
      className="border p-4 w-56 border-gray-200 rounded-xl hover:border-primary hover:-translate-y-3 transition-transform duration-500 flex flex-col gap-3"
    >
      <Image
        src={img}
        alt={label}
        width={200}
        height={300}
        className="rounded-lg"
      />
      <Heading as="h4" variant="card-sm" className="text-center text-primary">
        {label}
      </Heading>
    </Link>
  );
}
