mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
10 lines
472 B
TypeScript
10 lines
472 B
TypeScript
import React from "react";
|
|
import Typography from "@mui/material/Typography";
|
|
import { convertMathNotation } from "../root";
|
|
|
|
export function MathNotationOutput({ notation }: { notation: string }): JSX.Element {
|
|
// It's fine to use dangerouslySetInnerHTML here. We control the data in both MathNotation.json and
|
|
// MathNotationOutput.json. They are not user-provided data.
|
|
return <Typography dangerouslySetInnerHTML={{ __html: convertMathNotation(notation) }} />;
|
|
}
|