import { Container } from "@/components/Container"; import { Placeholder } from "@/components/Placeholder"; import { SlotLink } from "@/components/SlotLink"; import { glossyBar } from "@/lib/glossy"; import { parseAspectRatio } from "@/lib/static-images"; import type { SlotMediaItem } from "@/lib/static-images"; export function BannerRow({ banners, columns, aspectRatio, }: { banners: SlotMediaItem[]; columns: 2 | 3; aspectRatio?: string; }) { const ratio = parseAspectRatio(aspectRatio); return (
{banners.map((banner) => (
{(banner.title || banner.kicker || banner.text) && (
{banner.title ? (

{banner.title}

) : null} {banner.kicker ? ( <>

{banner.kicker}

) : null}
{banner.text ? (

{banner.text}

) : null}
)}
))}
); }