Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / spotlight / helpers.ts
bloba076a6fc48c0457c1fe7e6bc424d350aaab8cc69
1 import type { EnvironmentExtended } from '@proton/shared/lib/interfaces';
2 import type { SpotlightDate } from '@proton/shared/lib/spotlight/interface';
4 export const getEnvironmentDate = (
5     currentEnvironment: EnvironmentExtended | undefined,
6     spotlightDates: SpotlightDate
7 ) => {
8     if (currentEnvironment) {
9         const environmentDate = spotlightDates[currentEnvironment];
10         if (environmentDate !== undefined) {
11             return environmentDate;
12         }
13     }
14     return spotlightDates.default;