Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

248 B
Raw Blame
import { JSONContent } from '@tiptap/core';
import { Fragment } from 'react';

interface TextRendererProps {
  node: JSONContent;
}

export const TextRenderer = ({ node }: TextRendererProps) => {
  return <Fragment>{node.text ?? ''}</Fragment>;
};