"use client"; import { Card, CardHeader } from "@/components/ui/card"; import { cn } from "@/lib/utils"; import { Settings2, Sparkles, Zap } from "lucide-react"; import { ReactNode } from "react"; import { useContent } from "@/components/layout/content-provider"; const featureIcons = [Zap, Settings2, Sparkles]; export default function FeaturesCardGrid() { const content = useContent(); const { featuresCardGrid } = content.pages.home; const features = featuresCardGrid.items.map((item, i) => ({ ...item, icon: featureIcons[i] ?? Zap, })); return (

{featuresCardGrid.heading}

{features.map((item) => { const Icon = item.icon; return (

{item.title}

{item.description}

); })}
); } const CardDecorator = ({ children }: { children: ReactNode }) => (
{children}
);