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