gdpr audit implemented, email log, vollmachten, pdf delete cancel data privacy and vollmachten, removed message no id card in engergy car, and other contracts that are not telecom contracts, added insert counter for engery
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
import type { ComponentProps } from 'react'
|
||||
import React from 'react'
|
||||
|
||||
import { useReactNodeView } from './useReactNodeView.js'
|
||||
|
||||
export type NodeViewContentProps<T extends keyof React.JSX.IntrinsicElements = 'div'> = {
|
||||
as?: NoInfer<T>
|
||||
} & ComponentProps<T>
|
||||
|
||||
export function NodeViewContent<T extends keyof React.JSX.IntrinsicElements = 'div'>({
|
||||
as: Tag = 'div' as T,
|
||||
...props
|
||||
}: NodeViewContentProps<T>) {
|
||||
const { nodeViewContentRef, nodeViewContentChildren } = useReactNodeView()
|
||||
|
||||
return (
|
||||
// @ts-ignore
|
||||
<Tag
|
||||
{...props}
|
||||
ref={nodeViewContentRef}
|
||||
data-node-view-content=""
|
||||
style={{
|
||||
whiteSpace: 'pre-wrap',
|
||||
...props.style,
|
||||
}}
|
||||
>
|
||||
{nodeViewContentChildren}
|
||||
</Tag>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user