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

// e2e: fixed friend recommendations, no network call
const RECS: RecommendedCrumb[] = [
  {
    crumb: {
      id: 'e2e-rec-crumb',
      authorId: 'e2e-rec-friend',
      name: 'Golden Gate Park',
      note: null,
      imageUrl: null,
      source: 'manual',
      status: 'done',
      plannedFor: null,
      place: {
        id: 'e2e-rec-golden-gate-park',
        name: 'Golden Gate Park',
        latitude: 37.7694,
        longitude: -122.4862,
        address: 'San Francisco, CA',
        category: 'park',
        status: 'canonical',
      },
      event: null,
      origin: null,
      tags: [],
      createdAt: '2026-01-01T00:00:00.000Z',
      updatedAt: '2026-01-01T00:00:00.000Z',
    },
    author: {
      id: 'e2e-rec-friend',
      handle: 'mossy-matcha',
      avatarUrl: null,
      createdAt: '2026-01-01T00:00:00.000Z',
      friendCount: 1,
      friendshipStatus: 'friends',
    },
    reactions: [],
    distanceKm: 1.2,
  },
]

export const useFriendRecs = () => ({
  recs: RECS,
  loading: false,
  error: null as string | null,
  fetch: async (_coords: {lat: number; lng: number}) => {},
  reset: () => {},
})
