import { motion } from "motion/react"; import TextAnimation from "@/components/ui/TextAnimation"; import Button from "@/components/ui/Button"; import HoverPattern from "@/components/ui/HoverPattern"; import GridOrCarousel from "@/components/ui/GridOrCarousel"; import type { LucideIcon } from "lucide-react"; import { resolveIcon } from "@/utils/resolve-icon"; type FeatureItem = { icon: string | LucideIcon; title: string; description: string; }; interface FeaturesIconCardsProps { tag: string; title: string; description: string; primaryButton?: { text: string; href: string }; secondaryButton?: { text: string; href: string }; features: FeatureItem[]; } const FeaturesIconCards = ({ tag, title, description, primaryButton, secondaryButton, features, }: FeaturesIconCardsProps) => { return (
{tag} {(primaryButton || secondaryButton) && (
{primaryButton &&
)}
{features.map((feature) => { const FeatureIcon = resolveIcon(feature.icon); return (

{feature.title}

{feature.description}

); })}
); }; export default FeaturesIconCards;