16 lines
440 B
TypeScript
16 lines
440 B
TypeScript
import DeprecatedJsonToHtml from "@/components/DeprecatedJsonToHtml"
|
|
|
|
import { renderOptions } from "./../currentRenderOptions"
|
|
|
|
import type { TextProps } from "@/types/components/current/blocks/text"
|
|
|
|
export default function Text({ text }: TextProps) {
|
|
return (
|
|
<DeprecatedJsonToHtml
|
|
embeds={text.content.embedded_itemsConnection.edges}
|
|
nodes={text.content.json.children}
|
|
renderOptions={renderOptions}
|
|
/>
|
|
)
|
|
}
|