decord/source/design/components/Illustration/native/index.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

38 lines
1.1 KiB
TypeScript

// Module ID: 8233
// Function ID: 8234
// Name: getIllustrationSource
// Dependencies: [4271, 2]
// Exports: getIllustrationSource, useIllustrationSource
// Module 8233 (getIllustrationSource)
import set from "set" /* 2 */;
import ManaContext from "ManaContext" /* 4271 */;
const result = set.fileFinishedImporting("design/components/Illustration/native/index.tsx");
export const getIllustrationSource = function getIllustrationSource(theme, light) {
if ("light" === theme) {
light = light.light;
} else if ("darker" === theme) {
let midnight = light.darker;
if (midnight == null) {
midnight = light.midnight;
}
light = midnight;
} else if ("midnight" === theme) {
let darker = light.midnight;
if (darker == null) {
darker = light.darker;
}
light = darker;
}
if (null != light) {
let lightResult = light();
} else {
lightResult = light.dark();
}
return lightResult;
};
export const useIllustrationSource = function useIllustrationSource(arg0) {
return arg0(ManaContext.useThemeContext().theme);
};