import { defineMessages } from 'react-intl';

const scope = 'app.v2Components.CapImageUrlUpload';

export default defineMessages({
  imageUrlPlaceholder: {
    id: `${scope}.imageUrlPlaceholder`,
    defaultMessage: 'Enter image URL',
  },
  imageUrlInvalid: {
    id: `${scope}.imageUrlInvalid`,
    defaultMessage: 'Please enter a valid image URL',
  },
  imageTypeInvalid: {
    id: `${scope}.imageTypeInvalid`,
    defaultMessage: 'Invalid image type. Only JPEG, JPG, and PNG formats are allowed',
  },
  imageSizeInvalid: {
    id: `${scope}.imageSizeInvalid`,
    defaultMessage: 'Image size exceeds the maximum limit',
  },
  imageLoadError: {
    id: `${scope}.imageLoadError`,
    defaultMessage: 'Failed to load image. Please check the URL and try again',
  },
  validatingUrl: {
    id: `${scope}.validatingUrl`,
    defaultMessage: 'Validating image URL...',
  },
  uploadingImage: {
    id: `${scope}.uploadingImage`,
    defaultMessage: 'Uploading image to gallery...',
  },
  recommendedDimensions: {
    id: `${scope}.recommendedDimensions`,
    defaultMessage: 'Recommended dimensions: {dimensions}',
  },
  sizeLimit: {
    id: `${scope}.sizeLimit`,
    defaultMessage: 'Size upto: {size}',
  },
  formatTypes: {
    id: `${scope}.formatTypes`,
    defaultMessage: 'Format: {formats}',
  },
});

