"use client";

import { BlockMath, InlineMath } from "react-katex";

interface KatexRendererProps {
  latex: string;
  displayMode?: boolean;
}

export default function KatexRenderer({
  latex,
  displayMode = false,
}: KatexRendererProps) {
  return displayMode ? <BlockMath math={latex} /> : <InlineMath math={latex} />;
}
