// Module ID: 8819 // Function ID: 8820 // Name: useCutoutBackgroundColor // Dependencies: [19, 21, 672, 8820, 576, 4262, 2] // Exports: CutoutBackgroundProvider, useCutoutBackgroundColor // Module 8819 (useCutoutBackgroundColor) import ThemesDefault from "Themes" /* 576 */; import nDefault from "n" /* 672 */; import flattenColorOverOpaqueBackground from "flattenColorOverOpaqueBackground" /* 8820 */; import importAllResult from "noop" /* 19 */; import { jsx } from "jsxProd" /* 21 */; require = arg1; let c3 = importAllResult; let context = importAllResult.createContext(undefined); const result = require("set").fileFinishedImporting("design/components/Icon/native/CutoutBackgroundContext.tsx"); export const useCutoutBackgroundColor = function useCutoutBackgroundColor() { return importAllResult.useContext(closure_5); }; export const CutoutBackgroundProvider = function CutoutBackgroundProvider(children) { const backgroundColor = children.backgroundColor; const context = importAllResult.useContext(closure_5); const internal = ThemesDefault.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) { let value = token; if (1 !== obj2.alpha()) { if (null != context) { value = flattenColorOverOpaqueBackground.flattenColorOverOpaqueBackground(token, context); const tmp6Result = flattenColorOverOpaqueBackground; } } obj2 = nDefault(token); } else if (undefined === token) { value = context; } return {arg0.children}; };