Download react-page/packages/plugins/content/image/src/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 710 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/plugins/content/image/src/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-page/packages/plugins/content/image/src/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/plugins/content/image/src/index.tsx
710 Bytes
| import type { CellPlugin } from '@react-page/editor'; | |
| import { lazyLoad, ImageUploadType } from '@react-page/editor'; | |
| import createPlugin from './createPlugin'; | |
| import ImageHtmlRenderer from './Renderer/ImageHtmlRenderer'; | |
| import type { ImageSettings } from './types/settings'; | |
| import type { ImageState } from './types/state'; | |
| const ImageControls = lazyLoad(() => import('./Controls/ImageControls')); | |
| const imagePlugin: ( | |
| settings?: Partial<ImageSettings> | |
| ) => CellPlugin<ImageState> = (settings) => | |
| createPlugin({ | |
| Renderer: ImageHtmlRenderer, | |
| Controls: ImageControls, | |
| ...settings, | |
| }); | |
| const image = imagePlugin(); | |
| export default image; | |
| export { ImageUploadType }; | |
| export { imagePlugin }; | |