import { cn } from '@/lib/utils'; import type { AboutSection } from '../types'; import { Container } from '../ui'; export function About({ section }: { section: AboutSection }) { const { heading, body, stats } = section.content; const showStats = section.variant === 'with-stats' && stats.length > 0; // statement: the story as one large statement, with the heading as a small label above it. if (section.variant === 'statement') { return (

{heading}

220 ? 'text-xl sm:text-2xl md:text-3xl' : 'text-2xl sm:text-4xl md:text-5xl md:leading-[1.15]', )} > {body}

{stats.length > 0 && (
{stats.map((stat) => (
{stat.label}
{stat.value}
))}
)}
); } return (

{heading}

{body}

{showStats && (
{stats.map((stat) => (
{stat.label}
{stat.value}
))}
)}
); }