decord/source/design/void/LegacyText/native/useLegacyTextMigrationHighlight.tsx

27 lines
1 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 8041
// Function ID: 8042
2026-07-23 10:11:24 +00:00
// Name: useLegacyTextMigrationHighlight
2026-08-12 06:57:52 +00:00
// Dependencies: [4343, 4344, 712, 589, 2]
2026-07-23 10:11:24 +00:00
// Exports: useLegacyTextMigrationHighlight
2026-08-12 06:57:52 +00:00
// Module 8041 (useLegacyTextMigrationHighlight)
2026-07-29 08:29:29 +00:00
import getUserAgnosticState from "getUserAgnosticState";
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { highlight: null };
createCacheKey = { borderWidth: 1, borderColor: require("Themes").colors.STATUS_DANGER };
createCacheKey[0] = createCacheKey;
createCacheKey = createCacheKey.createStyles(createCacheKey);
const result = require("Themes").fileFinishedImporting("design/void/LegacyText/native/useLegacyTextMigrationHighlight.tsx");
2026-07-23 10:11:24 +00:00
export const useLegacyTextMigrationHighlight = function useLegacyTextMigrationHighlight() {
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
const items = [getUserAgnosticState];
2026-07-23 10:11:24 +00:00
let highlight = null;
2026-07-29 08:29:29 +00:00
if (obj.useStateFromStores(items, () => getUserAgnosticState.get("highlight_mana_text"))) {
2026-07-23 10:11:24 +00:00
highlight = tmp.highlight;
}
return highlight;
};