import React, { ComponentProps } from "react"; import AceEditor from "../../editors/AceEditor"; type Props = ComponentProps & { value: string; setValue: React.Dispatch; maxHeight: string; }; export default function MarkdownEditorComponent({ value, setValue, maxHeight, ...props }: Props) { return ( { setValue(newValue); }} wrapperProps={{ style: { height: maxHeight }, className: `max-h-[${maxHeight}]`, }} placeholder="## Write Some markdown ..." fontSize="14px" {...props} /> ); }