2026-09-10 19:12:31 +00:00
|
|
|
// Module ID: 15789
|
|
|
|
|
// Function ID: 15790
|
2026-07-23 10:11:24 +00:00
|
|
|
// Name: useManaTextMigrationHighlightRestartNotice
|
2026-09-10 19:12:31 +00:00
|
|
|
// Dependencies: [19, 4604, 504, 4950, 2]
|
2026-07-23 10:11:24 +00:00
|
|
|
// Exports: useManaTextMigrationHighlightRestartNotice
|
|
|
|
|
|
2026-09-10 19:12:31 +00:00
|
|
|
// Module 15789 (useManaTextMigrationHighlightRestartNotice)
|
|
|
|
|
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4950 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-10 19:12:31 +00:00
|
|
|
import DevSettingsStore from "DevSettingsStore" /* 4604 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const require = globalThis.__r;
|
|
|
|
|
|
|
|
|
|
const require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("design/components/Text/native/useManaTextMigrationHighlightRestartNotice.tsx");
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
export const useManaTextMigrationHighlightRestartNotice = function useManaTextMigrationHighlightRestartNotice() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [DevSettingsStore];
|
|
|
|
|
const stateFromStores = require("initialize").useStateFromStores(items, () => DevSettingsStore.get("highlight_mana_text"));
|
|
|
|
|
_require = noop.useRef(true);
|
2026-07-23 10:11:24 +00:00
|
|
|
const items1 = [stateFromStores];
|
2026-09-10 05:38:07 +00:00
|
|
|
const effect = noop.useEffect(() => {
|
2026-07-23 10:11:24 +00:00
|
|
|
if (ref.current) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp.current = false;
|
2026-07-23 10:11:24 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
actions_AlertActionCreatorsDefault.show({ title: "Mana Text Migration Highlighter", body: "Restart the app (force quit and reopen) to see the change." });
|
2026-07-23 10:11:24 +00:00
|
|
|
}
|
|
|
|
|
}, items1);
|
|
|
|
|
};
|