12 lines
314 B
TypeScript
12 lines
314 B
TypeScript
import type { Editor } from "@tiptap/react";
|
|
import { EditorContent } from "@tiptap/react";
|
|
|
|
interface TiptapEditorProps {
|
|
editor: Editor | null;
|
|
className?: string;
|
|
}
|
|
|
|
export function TiptapEditor({ editor, className }: TiptapEditorProps) {
|
|
return <EditorContent editor={editor} className={className} />;
|
|
}
|