import { createMockService } from '../useSelectedCollaboratorsDrawer/mocks';

import { type CountServiceResult } from './types';

type FormValues = {
  name: string;
  description: string;
};

export const isFormEmpty = (values: FormValues) =>
  !values.name && !values.description;

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

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

export const useMockCountLoading = (): CountServiceResult => ({
  count: 0,
  loading: true,
});

export const useMockService = () => createMockService();
