import type {PlaceRef} from '@crumbs/core/schemas'

// e2e: fixed nearby places, no location prompt or locationiq call
const PLACES: PlaceRef[] = [
  {
    id: 'e2e-golden-gate-park',
    provider: 'locationiq',
    osmType: 'node',
    osmId: 'e2e-ggp',
    name: 'Golden Gate Park',
    address: 'San Francisco, CA',
    coordinate: {latitude: 37.7694, longitude: -122.4862},
  },
]

export const useNearbyPlaces = () => ({
  places: PLACES,
  loading: false,
  error: null as string | null,
  fetch: async (_coords?: {lat: number; lng: number}) => {},
  reset: () => {},
})
