import {types} from '@react-native-documents/picker';

export enum UploaderValidTypes {
  Image = 'image',
  Pdf = 'pdf',
  All = 'all',
}

export const DEFAULT_VALID_TYPES = [
  UploaderValidTypes.Image,
  UploaderValidTypes.Pdf,
];

export const VALID_TYPES_MAPPER = {
  [UploaderValidTypes.Image]: types.images,
  [UploaderValidTypes.Pdf]: types.pdf,
  [UploaderValidTypes.All]: types.allFiles,
};

export enum UploaderInputs {
  Documents = 'documents',
  Video = 'video',
  Gallery = 'gallery',
  Camera = 'camera',
}

export const DEFAULT_INPUTS: UploaderInputs[] = [
  UploaderInputs.Documents,
  UploaderInputs.Gallery,
  UploaderInputs.Camera,
];

export type UploaderInputFlags = Record<UploaderInputs, boolean>;
