ai-bot/app/_ui/MarkdownView.tsx

11 lines
296 B
TypeScript
Raw Normal View History

2025-03-04 15:20:17 +08:00
import { Editor } from "@bytemd/react";
2025-03-04 15:20:17 +08:00
export default function MyMarkdownEdit({ value = '', onChange }: { value?: string; onChange?: (val: string) => void }) {
return (
2025-03-04 15:20:17 +08:00
<Editor
value={value}
onChange={onChange}
// plugins={plugins}
/>
)
}