| import React from 'react' | |
| import { useReactNodeView } from './useReactNodeView.js' | |
| export interface NodeViewWrapperProps { | |
| [key: string]: any, | |
| as?: React.ElementType, | |
| } | |
| export const NodeViewWrapper: React.FC<NodeViewWrapperProps> = React.forwardRef((props, ref) => { | |
| const { onDragStart } = useReactNodeView() | |
| const Tag = props.as || 'div' | |
| return ( | |
| // @ts-ignore | |
| <Tag | |
| {...props} | |
| ref={ref} | |
| data-node-view-wrapper="" | |
| onDragStart={onDragStart} | |
| style={{ | |
| whiteSpace: 'normal', | |
| ...props.style, | |
| }} | |
| /> | |
| ) | |
| }) | |
Xet Storage Details
- Size:
- 579 Bytes
- Xet hash:
- cbf294d8419fcca49c780ec71d3c06b08f1fc8659366ab119f5e898b18494e81
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.