import { Box, Typography } from "@mui/material"; import type { Location } from "@/domain/locations/types/location"; import { buildSiteMapEmbedUrl, hasCompleteSiteAddress } from "@/domain/locations/utils/site-maps"; type SiteMapPreviewProps = Pick; /** Read-only key-less Google Maps embed; a placeholder until Street, City and State are set. */ export function SiteMapPreview(props: SiteMapPreviewProps) { const complete = hasCompleteSiteAddress(props); return ( Location preview {complete && ( )} {!complete && ( Enter an address to preview the location )} ); }