import type { PageParams } from '@/lib/api/types';

/**
 * React Query key factory for the nurse service-areas domain. Add/remove invalidate
 * `serviceAreaKeys.lists()` so the chip list always reflects reality.
 */
export const serviceAreaKeys = {
  all: ['service-areas'] as const,
  lists: () => [...serviceAreaKeys.all, 'list'] as const,
  list: (params?: PageParams) => [...serviceAreaKeys.lists(), params ?? {}] as const,
};
