import { CelebrationType } from 'src/types/upcomingCelebrations';

export const upcomingCelebrationsKeys = {
  all: () => ['upcomingCelebrations'],
  celebrationDates: (
    canViewBirthdays: boolean,
    canViewAnniversaries: boolean,
    celebrationType: CelebrationType,
  ) => [
    ...upcomingCelebrationsKeys.all(),
    'dates',
    canViewBirthdays,
    canViewAnniversaries,
    celebrationType,
  ],
  date: (
    date: string,
    canViewBirthdays: boolean,
    canViewAnniversaries: boolean,
    celebrationType: CelebrationType,
  ) => [
    ...upcomingCelebrationsKeys.all(),
    'date',
    date,
    canViewBirthdays,
    canViewAnniversaries,
    celebrationType,
  ],
  celebrationsConfig: () => [
    ...upcomingCelebrationsKeys.all(),
    'segment-config',
  ],
};
