decord/source/hooks/useTheme.tsx

28 lines
663 B
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4066
2026-07-24 07:16:23 +00:00
// Function ID: 33872
2026-07-20 16:05:17 +00:00
// Name: useTheme
2026-07-23 10:11:24 +00:00
// Dependencies: [653, 3976, 2]
2026-07-20 16:05:17 +00:00
// Exports: useThemeIndex
2026-07-23 10:11:24 +00:00
// Module 4066 (useTheme)
import { ThemeTypes } from "ME";
2026-07-20 16:05:17 +00:00
function useTheme() {
2026-07-23 10:11:24 +00:00
return require(3976) /* AccessibilityAnnouncer */.useThemeContext().theme;
2026-07-20 16:05:17 +00:00
}
function getThemeIndex(arg0) {
if (ThemeTypes.DARK === arg0) {
return 0;
} else if (ThemeTypes.LIGHT === arg0) {
return 1;
}
}
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("hooks/useTheme.tsx");
2026-07-20 16:05:17 +00:00
export default useTheme;
export { useTheme };
export const useThemeIndex = function useThemeIndex() {
return getThemeIndex(useTheme());
};
export { getThemeIndex };