UNPKG

slanted-gamedev-toolz

Version:

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

26 lines (25 loc) 1.52 kB
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; import { useMemo } from "react"; import { getLangCode, getLocalizedTextRaw, } from "../LocalizationSelect/useLocalization"; import { importExportSaveLocalization } from "./constants/ImportExportLocalization"; export const LoadGameInstruction = ({}) => { const isEnglish = useMemo(() => { return getLangCode() === ""; }, []); return (_jsxs("h3", { style: { textAlign: "center", display: "flex", flexDirection: "column", gap: "10px", }, children: [_jsx("div", { style: { fontSize: "1.1em", }, children: getLocalizedTextRaw(importExportSaveLocalization.loadAGame) }), _jsx("div", { style: { fontSize: "0.8em", }, children: isEnglish ? (_jsxs(_Fragment, { children: ["1. paste your", _jsxs("span", { style: { color: "gold", }, children: [" ", "SAVE STRING", " "] }), "in the text box"] })) : (getLocalizedTextRaw(importExportSaveLocalization.loadstep1)) }), _jsx("div", { style: { fontSize: "0.8em", }, children: isEnglish ? (_jsxs(_Fragment, { children: ["2. click", " ", _jsx("span", { style: { color: "#00CF1F", }, children: "Load Save String" })] })) : (getLocalizedTextRaw(importExportSaveLocalization.loadstep2)) })] })); };