bitburner-src/src/MathJaxWrapper.tsx

15 lines
375 B
TypeScript
Raw Normal View History

2022-04-07 01:30:08 +02:00
import React from "react";
2022-01-08 13:48:10 +01:00
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>
2022-04-07 01:30:08 +02:00
);
2022-01-08 13:48:10 +01:00
}