Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
// Module ID: 15789
|
|
// Function ID: 15790
|
|
// Name: useManaTextMigrationHighlightRestartNotice
|
|
// Dependencies: [19, 4604, 504, 4950, 2]
|
|
// Exports: useManaTextMigrationHighlightRestartNotice
|
|
|
|
// Module 15789 (useManaTextMigrationHighlightRestartNotice)
|
|
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4950 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import DevSettingsStore from "DevSettingsStore" /* 4604 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("design/components/Text/native/useManaTextMigrationHighlightRestartNotice.tsx");
|
|
|
|
export const useManaTextMigrationHighlightRestartNotice = function useManaTextMigrationHighlightRestartNotice() {
|
|
const items = [DevSettingsStore];
|
|
const stateFromStores = require("initialize").useStateFromStores(items, () => DevSettingsStore.get("highlight_mana_text"));
|
|
_require = noop.useRef(true);
|
|
const items1 = [stateFromStores];
|
|
const effect = noop.useEffect(() => {
|
|
if (ref.current) {
|
|
tmp.current = false;
|
|
} else {
|
|
actions_AlertActionCreatorsDefault.show({ title: "Mana Text Migration Highlighter", body: "Restart the app (force quit and reopen) to see the change." });
|
|
}
|
|
}, items1);
|
|
};
|