import { type CountServiceResult } from '../hooks/useCriteriaDrawer/types';
import { createMockService } from '../hooks/useSelectedCollaboratorsDrawer/mocks';

import {
  type IndividualCriteriaEntry,
  type SegmentationCriteriaEntry,
} from './types';

/** Returns a static description string for a segmentation criteria entry. */
export const getSegmentationDescription = (_entry: SegmentationCriteriaEntry) =>
  'País: México / Área: Operaciones / Sede: Oaxaca';

/** Returns a count-based description string for an individual criteria entry. */
export const getIndividualDescription = (entry: IndividualCriteriaEntry) =>
  `${entry.userIds.size} colaboradores seleccionados`;

export const mockService = createMockService();

export const useMockCount = (): CountServiceResult => ({
  count: 42,
  loading: false,
});

export const useMockService = () => mockService;
