mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-10-23 18:23:15 +02:00
12 lines
292 B
TypeScript
12 lines
292 B
TypeScript
import { AlertEvents } from "./AlertManager";
|
|
|
|
import React from "react";
|
|
|
|
export function dialogBoxCreate(txt: string | JSX.Element): void {
|
|
if (typeof txt !== "string") {
|
|
AlertEvents.emit(txt);
|
|
} else {
|
|
AlertEvents.emit(<pre dangerouslySetInnerHTML={{ __html: txt }} />);
|
|
}
|
|
}
|