personal-website/components/SuspendedTeX.tsx

15 lines
307 B
TypeScript
Raw Normal View History

'use client'
import dynamic from 'next/dynamic'
import { ComponentProps } from 'react'
import 'katex/dist/katex.min.css'
const TeX = dynamic(() => import('@matejmazur/react-katex'))
const SuspendedTeX = (props: ComponentProps<typeof TeX>) => {
return <TeX {...props} />
}
export default SuspendedTeX