import type { StaticImageSlot } from "@/lib/types"; import { toCssAspectRatio } from "@/lib/format"; export default function FullBanner({ slot }: { slot?: StaticImageSlot }) { const img = slot?.images[0]; const cssAspectRatio = toCssAspectRatio(slot?.aspectRatio); const aspectStyle = cssAspectRatio ? { aspectRatio: cssAspectRatio } : undefined; const src = img?.url ?? "/images/banners/full-banner.svg"; const href = img?.linkUrl ?? "#"; return (
); }