File size: 1,163 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
import React from 'react';
import type { ImageSettings } from '../types/settings';
import { lazyLoad } from '@react-page/editor';
const Panorama = lazyLoad(() => import('@mui/icons-material/Panorama'));
export const defaultTranslations = {
pluginName: 'Image',
pluginDescription: 'Loads an image from an url.',
or: 'OR',
haveUrl: 'Existing image URL',
imageUrl: 'Image URL',
hrefPlaceholder: 'http://example.com',
hrefLabel: 'Link to open upon image click',
altPlaceholder: "Image's description",
altLabel: "Image's alternative description",
openNewWindow: 'Open link in new window',
srcPlaceholder: 'http://example.com/image.png',
// Strings used in ImageUpload
buttonContent: 'Choose for upload',
noFileError: 'No file selected',
badExtensionError: 'Wrong file type',
tooBigError: 'Image file > 5MB',
uploadingError: 'Error while uploading',
unknownError: 'Unknown error',
};
export const defaultSettings: ImageSettings = {
Controls: () => <> Controls for this plugin were not provided</>,
Renderer: () => <>Renderer; for this plugin was not provided </>,
translations: defaultTranslations,
icon: <Panorama />,
};
|