20 lines
513 B
TypeScript
20 lines
513 B
TypeScript
// Metro module 4125 (f4126).
|
|
import { ThemeTypes } from "../Constants";
|
|
import { useThemeContext } from "../design/shared";
|
|
export function useTheme() {
|
|
return useThemeContext().theme;
|
|
}
|
|
export default useTheme;
|
|
export function useThemeIndex() {
|
|
const theme = useThemeContext().theme;
|
|
return ThemeTypes.DARK !== theme ? ThemeTypes.LIGHT === theme ? 1 : void 0 : 0;
|
|
}
|
|
export function getThemeIndex(a0) {
|
|
if (ThemeTypes.DARK === a0) {
|
|
return 0;
|
|
}
|
|
if (ThemeTypes.LIGHT === a0) {
|
|
return 1;
|
|
}
|
|
}
|