Download react-page/packages/editor/src/ui/EditorUI/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 795 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/editor/src/ui/EditorUI/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-page/packages/editor/src/ui/EditorUI/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/editor/src/ui/EditorUI/index.tsx
795 Bytes
| import React from 'react'; | |
| import { PluginDrawer } from '../PluginDrawer'; | |
| import { Trash } from '../Trash'; | |
| import type { StickyNess } from '../Sidebar'; | |
| import { Sidebar } from '../Sidebar'; | |
| import { useOption } from '../../core/components/hooks'; | |
| import { MultiNodesBottomToolbar } from '../MultiNodesBottomToolbar'; | |
| export default React.memo( | |
| ({ | |
| stickyNess = { | |
| shouldStickToTop: false, | |
| shouldStickToBottom: false, | |
| rightOffset: 0, | |
| rightOffsetFixed: 0, | |
| }, | |
| }: { | |
| stickyNess?: StickyNess; | |
| }) => { | |
| const hideEditorSidebar = useOption('hideEditorSidebar'); | |
| return ( | |
| <> | |
| <Trash /> | |
| {!hideEditorSidebar && <Sidebar stickyNess={stickyNess} />} | |
| <PluginDrawer /> | |
| <MultiNodesBottomToolbar /> | |
| </> | |
| ); | |
| } | |
| ); | |