"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useFileUploaderErrors = exports.ERROR_TYPES = exports.DEFAULT_ACCEPTED_FILES_LIST = void 0;
var _useTranslation = require("../hooks/use-translation");
const ERROR_TYPES = exports.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'
};
const useFileUploaderErrors = () => {
  const {
    t
  } = (0, _useTranslation.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.')
  };
};
exports.useFileUploaderErrors = useFileUploaderErrors;
const DEFAULT_ACCEPTED_FILES_LIST = exports.DEFAULT_ACCEPTED_FILES_LIST = ['.tar', '.gz', '.zip', '.mlpkg'];