Download react-page/packages/plugins/layout/background/src/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 679 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/plugins/layout/background/src/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-page/packages/plugins/layout/background/src/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/plugins/layout/background/src/index.tsx
679 Bytes
| import type { BackgroundSettings } from './types/settings'; | |
| import createPlugin from './createPlugin'; | |
| import BackgroundHtmlRenderer from './Renderer/BackgroundHtmlRenderer'; | |
| import type { MakeOptional } from './types/makeOptional'; | |
| import { ModeEnum } from './types/ModeEnum'; | |
| export { ModeEnum }; | |
| import { lazyLoad } from '@react-page/editor'; | |
| const BackgroundDefaultControls = lazyLoad(() => import('./Controls/Controls')); | |
| export default ( | |
| settings: MakeOptional<BackgroundSettings, 'Renderer' | 'Controls'> | |
| ) => { | |
| const plugin = createPlugin({ | |
| Controls: BackgroundDefaultControls, | |
| Renderer: BackgroundHtmlRenderer, | |
| ...settings, | |
| }); | |
| return plugin; | |
| }; | |