import { businessPointApplicable } from '@/lib/business-locations'; export type RegisteredBusinessLocation = { id: string; precision_level: string; is_public: boolean; has_geometry: boolean; latitude: number | string | null; longitude: number | string | null; }; export default function BusinessPointSummary({ payload, registered, available = true, published = false, territoryLabel, }: { payload: Record; registered?: RegisteredBusinessLocation | null; available?: boolean; published?: boolean; territoryLabel?: string; }) { const active = businessPointApplicable(payload); if (!active && !registered) return null; const source = payload.location_point_source_mode === 'listing' ? payload.source_reference : payload.location_point_source_reference; const date = payload.location_point_source_mode === 'listing' ? payload.source_date : payload.location_point_source_date; return ( ); }