import React from 'react'; import dynamic from 'next/dynamic'; import { RendererOptions } from '~/services/renderer/renderer'; import { useSWRxPageComment } from '../../stores/comment'; import { Skelton } from '../Skelton'; import { CommentEditorProps } from './CommentEditor'; import CommentEditorStyles from './CommentEditor.module.scss'; const CommentEditor = dynamic(() => import('./CommentEditor').then(mod => mod.CommentEditor), { ssr: false, loading: () =>
, }); type Props = { pageId?: string, rendererOptions: RendererOptions, } export const CommentEditorLazyRenderer = (props: Props): JSX.Element => { const { pageId, rendererOptions } = props; const { mutate } = useSWRxPageComment(pageId); return ( ); };