decord/source/design/components/Text/native/useManaTextMigrationHighlightRestartNotice.tsx

28 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15225
// Function ID: 15226
2026-07-23 10:11:24 +00:00
// Name: useManaTextMigrationHighlightRestartNotice
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 4742, 589, 4662, 2]
2026-07-23 10:11:24 +00:00
// Exports: useManaTextMigrationHighlightRestartNotice
2026-08-24 06:08:38 +00:00
// Module 15225 (useManaTextMigrationHighlightRestartNotice)
import closure_3 from "noop" /* 19 */;
import closure_4 from "getUserAgnosticState" /* 4742 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("design/components/Text/native/useManaTextMigrationHighlightRestartNotice.tsx");
2026-07-23 10:11:24 +00:00
export const useManaTextMigrationHighlightRestartNotice = function useManaTextMigrationHighlightRestartNotice() {
2026-08-24 06:08:38 +00:00
const items = [closure_4];
const stateFromStores = _require(589).useStateFromStores(items, () => closure_4.get("highlight_mana_text"));
2026-07-23 10:11:24 +00:00
_require = React.useRef(true);
const items1 = [stateFromStores];
const effect = React.useEffect(() => {
if (ref.current) {
2026-07-29 08:29:29 +00:00
tmp.current = false;
2026-07-23 10:11:24 +00:00
} else {
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[3]).show({ title: "Mana Text Migration Highlighter", body: "Restart the app (force quit and reopen) to see the change." });
const obj = closure_1_1(closure_1_2[3]);
2026-07-23 10:11:24 +00:00
}
}, items1);
};