15 lines
303 B
TypeScript
15 lines
303 B
TypeScript
import type { ReactNode } from "react"
|
|
import React from "react"
|
|
|
|
export type TextProps = {
|
|
children?: ReactNode
|
|
}
|
|
|
|
export function Text(props: TextProps) {
|
|
return (
|
|
<reacord-element createNode={() => ({ type: "textElement", children: [] })}>
|
|
{props.children}
|
|
</reacord-element>
|
|
)
|
|
}
|