import dynamic from 'next/dynamic'; import Link from 'components/ui/link/link'; import Text from 'components/ui/text/text'; const SanityImage = dynamic(() => import('components/ui/sanity-image')); interface HeroProps { variant: string; text?: string; label?: string; title: string; image: object | any; desktopImage: object | any; link: { title: string; reference: { title: string; slug: { current: string; }; }; }; } type HeroSize = keyof typeof heroSize; const heroSize = { fullScreen: 'aspect-[3/4] lg:aspect-auto lg:h-[calc(75vh-4rem)]', halfScreen: 'aspect-square max-h-[60vh] lg:aspect-auto lg:min-h-[60vh]' }; const Hero = ({ variant, title, text, label, image, link }: HeroProps) => { const heroClass = heroSize[variant as HeroSize] || heroSize.fullScreen; return (