Skip to content

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

528 B
Raw Blame
import { JSONContent } from '@tiptap/core';

import { defaultClasses } from '@colanode/ui/editor/classes';
import { NodeChildrenRenderer } from '@colanode/ui/editor/renderers/node-children';

interface BlockquoteRendererProps {
  node: JSONContent;
  keyPrefix: string | null;
}

export const BlockquoteRenderer = ({
  node,
  keyPrefix,
}: BlockquoteRendererProps) => {
  return (
    <blockquote className={defaultClasses.blockquote}>
      <NodeChildrenRenderer node={node} keyPrefix={keyPrefix} />
    </blockquote>
  );
};