"use client"; import type { HomeFeature } from "../../node/types"; import { cn } from "../../node/utils"; import { renderLucideIcon } from "../Lucide"; interface FeaturesProps { features: HomeFeature[]; className?: string; } interface FeatureCardProps { feature: HomeFeature; index: number; } function FeatureCard({ feature, index }: FeatureCardProps) { const Wrapper = feature.link ? "a" : "div"; const wrapperProps = feature.link ? { href: feature.link } : {}; // Use index-based patternId to avoid collisions const patternId = `grid-${index}`; return ( {/* Grid pattern background */} {/* Content */}
{feature.icon && (
{renderLucideIcon(feature.icon, "h-6 w-6 text-primary")}
)}

{feature.title}

{feature.description}

); } export function Features({ features, className }: FeaturesProps) { if (!features || features.length === 0) return null; return (
{features.map((feature, index) => ( ))}
); }