mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 18:23:54 +01:00
15 lines
374 B
TypeScript
15 lines
374 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>
|
|
)
|
|
}
|