'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
