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

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

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