Spaces:
Build error
Build error
File size: 632 Bytes
d9494a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { isDefined } from 'twenty-shared/utils';
import { MESSAGING_FOLDER_MANAGER_ALWAYS_EXCLUDED_FOLDERS } from 'src/modules/messaging/message-folder-manager/utils/MESSAGING_FOLDER_MANAGER_ALWAYS_EXCLUDED_FOLDERS';
import { type StandardFolder } from 'src/modules/messaging/message-import-manager/drivers/types/standard-folder';
export const shouldCreateFolderByDefault = (
standardFolder?: StandardFolder | null,
): boolean => {
if (
isDefined(standardFolder) &&
MESSAGING_FOLDER_MANAGER_ALWAYS_EXCLUDED_FOLDERS.includes(
standardFolder as StandardFolder,
)
) {
return false;
}
return true;
};
|