import { useTranslation } from '../hooks/use-translation';
export const ERROR_TYPES = {
  DEFAULT_UPLOAD_ERROR: 'default_error',
  FILE_TYPE_IS_NOT_ALLOWED: 'file_type_is_not_allowed',
  SINGLE_ONLY: 'single_only',
  IS_REQUIRED: 'is_required'
};
export const useFileUploaderErrors = () => {
  const {
    t
  } = useTranslation();
  return {
    [ERROR_TYPES.DEFAULT_UPLOAD_ERROR]: t('Failed to upload the file'),
    [ERROR_TYPES.FILE_TYPE_IS_NOT_ALLOWED]: t('The file type is not allowed'),
    [ERROR_TYPES.SINGLE_ONLY]: t('You can only drop one file.'),
    [ERROR_TYPES.IS_REQUIRED]: t('File is required.')
  };
};
export const DEFAULT_ACCEPTED_FILES_LIST = ['.tar', '.gz', '.zip', '.mlpkg'];