import {ArrowUpRight, Calendar, MapPin, Utensils} from 'lucide-react'; import type {LocalPlace} from '@o2o/shared'; import {useSite} from '@/lib/site-context'; import {formatKoreanDate, naverSearchUrl} from '@/lib/format'; /** * 주변 정보. * * "○○ 근처 숙소" 같은 지역 질의에 걸리려면 지역 고유명사가 본문에 있어야 한다. * ★ 우리가 남의 가게 URL 을 지어내지 않는다 — 검색 링크로만 보낸다. * 틀린 링크는 사용자를 엉뚱한 데로 보내고, 그 책임은 이 홈페이지가 진다. */ export function LocalGuideSection() { const payload = useSite(); const {local} = payload; const hasAnything = local.restaurants.length > 0 || local.attractions.length > 0 || local.festivals.length > 0; if (!hasAnything) return null; return (

{'주변 안내'}

{payload.place.addressLocality ?? '주변'} 지역의 맛집 · 명소 · 행사 안내입니다.

{local.syncedAt && (

{formatKoreanDate(local.syncedAt)} 갱신

)}
{local.restaurants.length > 0 && ( )} {local.attractions.length > 0 && ( )} {local.festivals.length > 0 && (

지역 행사

    {local.festivals.map((festival) => (
  • {festival.month}

    {festival.name}

    {festival.description ?? festival.period}

    자세히
  • ))}
)}
); } function PlaceList({ title, icon: Icon, places, }: { title: string; icon: typeof MapPin; places: LocalPlace[]; }) { return (

{title}

); }