'use client' import React from 'react' export interface StatsProps { title?: string | null subtitle?: string | null items?: Array<{ id?: string | null stat: string label: string description?: string | null }> | null } export const StatsBlock: React.FC = ({ title, subtitle, items }) => { if (!items || items.length === 0) return null return (
{(title || subtitle) && (
{title && (

{title}

)} {subtitle && (

{subtitle}

)}
)}
{items.map((item, index) => (
{item.stat}
{item.label}
{item.description && (

{item.description}

)}
))}
) }