1 import { MAILBOX_LABEL_IDS } from '../../constants';
3 // The sort order needs to be changed if the user is in the snoozed or inbox folder
4 export const getAppropriateSort = (LabelID?: string | string[], Sort?: string) => {
5 const snoozeInboxLabelSort = Sort === 'Time' ? 'SnoozeTime' : Sort ?? 'Time';
8 !Array.isArray(LabelID) &&
9 [MAILBOX_LABEL_IDS.SNOOZED.toString(), MAILBOX_LABEL_IDS.INBOX.toString()].includes(LabelID)
10 ? snoozeInboxLabelSort