CoastalCommitsPastes/client/components/preview/index.tsx

9 lines
312 B
TypeScript
Raw Normal View History

2022-03-06 19:46:59 -05:00
import { memo } from "react"
import ReactMarkdownPreview from "./react-markdown-preview"
2022-03-06 19:46:59 -05:00
const MarkdownPreview = ({ content = '', height = 500 }: { content?: string, height?: number | string }) => {
return (<ReactMarkdownPreview height={height} content={content} />)
2022-03-06 19:46:59 -05:00
}
export default memo(MarkdownPreview)