mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 23:14:53 +09:00
11 lines
323 B
React
11 lines
323 B
React
import { notification } from "antd";
|
|
|
|
export default function notify(message, type = "info", description = undefined) {
|
|
notification[type]({
|
|
message: typeof message === "string" ? message : "ERROR: See console",
|
|
description,
|
|
placement: "bottomRight",
|
|
});
|
|
if (typeof message !== "string") console.error(message);
|
|
}
|