mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
15 lines
375 B
TypeScript
15 lines
375 B
TypeScript
import React from "react";
|
|
import { MathJax, MathJaxContext } from "better-react-mathjax";
|
|
|
|
interface IProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export function MathJaxWrapper({ children }: IProps): React.ReactElement {
|
|
return (
|
|
<MathJaxContext version={3} src={"dist/ext/MathJax-3.2.0/es5/tex-chtml.js"}>
|
|
<MathJax>{children}</MathJax>
|
|
</MathJaxContext>
|
|
);
|
|
}
|