// FeatureGrid composition — auto-fitting grid of feature cards. // Tile shape inherits from the shadcn Card primitive. import type { ReactNode } from 'react' import { Card, CardHeader, CardTitle, CardDescription } from '../primitives/card' import { cn } from '../cn' interface Feature { readonly title: string readonly body: string readonly icon?: ReactNode } interface FeatureGridProps { readonly sectionTitle?: string readonly features: ReadonlyArray readonly className?: string } export const FeatureGrid = ({ sectionTitle, features, className, }: FeatureGridProps): ReactNode => (
{sectionTitle ? (

{sectionTitle}

) : null}
{features.map((f) => ( {f.icon ?
{f.icon}
: null} {f.title} {f.body}
))}
)