UNPKG

slanted-gamedev-toolz

Version:

A slanted mix of tools for your brilliant ideas in game design.

15 lines (14 loc) 1.09 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { useMemo } from "react"; import { getLangCode, getLocalizedTextRaw, } from "../LocalizationSelect/useLocalization"; import { importExportSaveLocalization } from "./constants/ImportExportLocalization"; export const CopySaveStringToast = ({}) => { const isEnglish = useMemo(() => { return getLangCode() === ""; }, []); return (_jsxs("div", { style: { maxHeight: "200vw", overflowY: "auto" }, children: [_jsx("h1", { style: { textAlign: "center", fontSize: "1.9em" }, children: getLocalizedTextRaw(importExportSaveLocalization.SaveSuccessful) }), _jsx("h3", { style: { textAlign: "center", fontSize: "1.1em", color: "pink", }, children: getLocalizedTextRaw(importExportSaveLocalization.SaveCopied) }), isEnglish ? (_jsxs("h3", { style: { textAlign: "center", fontSize: "0.9em" }, children: [`Be sure to store your `, _jsx("span", { style: { color: "gold" }, children: "SAVE STRING" }), " somewhere safe."] })) : null] })); };