import Image from "next/legacy/image"
export type IconCardProps = {
title: React.ReactNode
icon: string
copy: React.ReactNode
className?: string
}
export const IconCard = ({ title, icon, copy, className }: IconCardProps) => {
return (
<div
className={`flex flex-col items-center justify-start overflow-hidden rounded bg-white text-center ${className}`}
>
<div className="flex h-44 w-full items-center justify-center text-blurple-500">
<div className="relative h-[7.5rem] w-[7.5rem]">
<Image
src={require(`../public/icons/${icon}.svg`)}
layout="fill"
alt=""
/>
</div>
</div>
<div className="flex flex-col gap-2 p-8 pt-0">
<h3 className="h5">{title}</h3>
<p className="b2 text-gray-1">{copy}</p>
</div>
</div>
)
}