decord/source/design/components/Icon/native/CutoutBackgroundContext.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

49 lines
1.6 KiB
TypeScript

// Module ID: 8941
// Function ID: 8942
// Name: CutoutBackgroundContext
// Dependencies: [19, 21, 672, 8942, 576, 4338, 2]
// Exports: CutoutBackgroundProvider, useCutoutBackgroundColor
// Module 8941 (CutoutBackgroundContext)
import nativeDefault from "native" /* 576 */;
import _modDef672 from "module_672" /* 672 */;
import shared_colors from "shared/colors" /* 8942 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsx = fn(21).jsx;
let context = noop.createContext(undefined);
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Icon/native/CutoutBackgroundContext.tsx");
export const useCutoutBackgroundColor = function useCutoutBackgroundColor() {
return noop.useContext(closure_5);
};
export const CutoutBackgroundProvider = function CutoutBackgroundProvider(children) {
const backgroundColor = children.backgroundColor;
const context = noop.useContext(closure_5);
const internal = nativeDefault.internal;
if (internal.isSemanticColor(backgroundColor)) {
const tmp5 = backgroundColor;
}
let token = null;
if (null !== backgroundColor) {
token = obj.useToken(tmp5);
if (typeof backgroundColor === "string") {
token = backgroundColor;
}
}
if (null != token) {
value = token;
if (1 !== obj2.alpha()) {
if (null != context) {
value = shared_colors.flattenColorOverOpaqueBackground(token, context);
const tmp6Result = shared_colors;
}
}
obj2 = _modDef672(token);
} else if (undefined === token) {
value = context;
}
return <closure_5.Provider value={value}>{arg0.children}</closure_5.Provider>;
};