mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-16 04:05:01 -05:00
18 lines
419 B
TypeScript
18 lines
419 B
TypeScript
|
import { Suspense, lazy } from "preact/compat";
|
||
|
|
||
|
const Renderer = lazy(() => import('./Renderer'));
|
||
|
|
||
|
export interface MarkdownProps {
|
||
|
content?: string;
|
||
|
disallowBigEmoji?: boolean;
|
||
|
}
|
||
|
|
||
|
export default function Markdown(props: MarkdownProps) {
|
||
|
return (
|
||
|
// @ts-expect-error
|
||
|
<Suspense fallback="Getting ready to render Markdown...">
|
||
|
<Renderer {...props} />
|
||
|
</Suspense>
|
||
|
)
|
||
|
}
|