ai-bot/app/_ui/MarkdownView.tsx

11 lines
296 B
TypeScript

import { Editor } from "@bytemd/react";
export default function MyMarkdownEdit({ value = '', onChange }: { value?: string; onChange?: (val: string) => void }) {
return (
<Editor
value={value}
onChange={onChange}
// plugins={plugins}
/>
)
}