/** * 오시는 길 · 간단 — 주소 한 줄과 길찾기 버튼만. * 도심처럼 "주소만 알면 찾아오는" 곳이면 표까지 깔 이유가 없다. */ import {MapPin} from 'lucide-react'; import { AddressCard, EmptyStateNotice, SectionBody, SectionFrame, SectionHeading, } from '../../primitives'; import type {SectionRenderProps} from '../../types'; export function MapCompact(props: SectionRenderProps) { const {section, isSelected, onSelect, storeName, location, template, infoFields} = props; // ★ props 로 온 주소만 쓴다. 없으면 카드 대신 준비 중 안내를 둔다 — // 시연용 주소로 떨어지면 손님을 남의 집으로 보낸다. const address = infoFields.find((f) => f.id === 'address')?.value ?? ''; return ( {location} } colors={template.colors} /> {address ? ( ) : ( 주소는 아직 준비 중입니다. )} ); }