import React from 'react'; import clsx from 'clsx'; import { LandingBentoGridItem, ItemVariant } from './LandingBentoGridItem'; import { ColorVariant } from './LandingBentoGridIconItem'; /** * A specialized bento grid item with optional top text, center large number, and bottom text. * Each text and the number can have different color variants (default, primary, secondary). */ export function LandingBentoGridNumberItem({ topText, topTextComponent, number, bottomText, bottomTextComponent, colSpan, rowSpan, className, href, variant = 'default', asChild = false, children, ...props }: { topText?: string; topTextComponent?: React.ReactNode; number?: string | number; bottomText?: string; bottomTextComponent?: React.ReactNode; colSpan?: 1 | 2 | 3 | 4; rowSpan?: 1 | 2 | 3; className?: string; href?: string; variant?: ItemVariant; asChild?: boolean; children?: React.ReactNode; }) { const content = (
{topTextComponent || (
{topText}
)} {number !== undefined && (
{number}
)} {bottomTextComponent || (
{bottomText}
)}
); return ( {children} ); }