--- import { CONTACT_CONSTANTS } from '@constants/constants.ts'; interface Props { variant?: 'full' | 'card' | 'simple'; title?: string; subtitle?: string; address?: string; mapUrl?: string; showRouteButton?: boolean; lazyLoad?: boolean; } const { variant = 'full', title = "Наш офис", subtitle = "г. Сургут, пр. Комсомольский, 19", address = CONTACT_CONSTANTS.address, mapUrl = "https://yandex.ru/maps/-/CDu~yK-j", showRouteButton = true, lazyLoad = true } = Astro.props; const defaultMapUrl = "https://yandex.ru/map-widget/v1/?um=constructor%3Acdxezk6x&source=constructor"; const currentMapUrl = variant === 'card' ? defaultMapUrl : mapUrl; --- {variant === 'full' ? (

{title}

{address}

{showRouteButton && ( Открыть в картах )}
) : variant === 'card' ? (

{title}

{subtitle}

{showRouteButton && ( Маршрут )}
Наведите для взаимодействия
) : (
)} {lazyLoad && variant === 'full' && ( )}