decord/source/hooks/useTheme.tsx

34 lines
868 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 4191
// Function ID: 4192
2026-07-20 16:05:17 +00:00
// Name: useTheme
2026-08-05 07:35:12 +00:00
// Dependencies: [676, 4101, 2]
2026-07-29 08:29:29 +00:00
// Exports: default, getThemeIndex, useTheme, useThemeIndex
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 4191 (useTheme)
2026-07-23 10:11:24 +00:00
import { ThemeTypes } from "ME";
2026-07-20 16:05:17 +00:00
function useTheme() {
2026-08-05 07:35:12 +00:00
return require(4101) /* AccessibilityAnnouncer */.useThemeContext().theme;
2026-07-20 16:05:17 +00:00
}
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() {
2026-08-05 07:35:12 +00:00
const theme = require(4101) /* AccessibilityAnnouncer */.useThemeContext().theme;
2026-07-29 08:29:29 +00:00
let num = 0;
if (ThemeTypes.DARK !== theme) {
if (ThemeTypes.LIGHT === theme) {
num = 1;
}
}
return num;
};
export const getThemeIndex = function getThemeIndex(arg0) {
if (ThemeTypes.DARK === arg0) {
return 0;
} else if (tmp.LIGHT === arg0) {
return 1;
}
2026-07-20 16:05:17 +00:00
};