/**
 * Materials 页面专用常量。
 */

export const ACCEPTED_TYPES = [
  'application/pdf',
  'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  'application/vnd.ms-excel',
  'application/msword',
  'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  'image/png',
  'image/jpeg',
  'image/gif',
  'image/bmp',
  'image/webp',
];

export const ACCEPTED_EXTENSIONS =
  '.pdf,.xlsx,.xls,.doc,.docx,.png,.jpg,.jpeg,.gif,.bmp,.webp';

export const MAX_FILE_SIZE_BYTES = 20 * 1024 * 1024;

export const PAGE_SIZE_OPTIONS = [10, 20, 50];

export const UPLOAD_SUCCESS_TOAST_OPTIONS = {
  duration: 3500,
  position: 'bottom-right' as const,
};
