"use client"; import { Package, Code2, BookOpen, Check } from "lucide-react"; import { useTranslations } from "@/lib/i18n"; export default function WhatIsIt() { const t = useTranslations(); const icons = [BookOpen, Package, Code2, Check]; // Provide fallback icons const cards = t.what.cards.map((card, i) => ({ ...card, Icon: icons[i] || Code2 })); return (

{t.what.title}

{t.what.subtitle}

{t.what.howDesc}

{cards.map(({ Icon, title, desc }) => (

{title}

{desc}

))}
); }