// Module ID: 7975 // Function ID: 7976 // Name: useCutoutBackgroundColor // Dependencies: [19, 21, 689, 7976, 712, 3897, 2] // Exports: CutoutBackgroundProvider, useCutoutBackgroundColor // Module 7975 (useCutoutBackgroundColor) import importAllResult from "noop"; import { jsx } from "jsxProd"; const require = arg1; let c3 = importAllResult; let context = importAllResult.createContext(undefined); const result = require("n").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 = importDefault(712).internal; if (internal.isSemanticColor(backgroundColor)) { const tmp5 = backgroundColor; } let token = null; if (null !== backgroundColor) { token = obj.useToken(tmp5); if (typeof backgroundColor !== "__FORMATJS_LISTFORMAT_DATA__") { token = backgroundColor; } } if (null != token) { let value = token; if (1 !== obj2.alpha()) { if (null != context) { value = require(7976) /* flattenColorOverOpaqueBackground */.flattenColorOverOpaqueBackground(token, context); const tmp6Result = require(7976) /* flattenColorOverOpaqueBackground */; } } obj2 = importDefault(689)(token); } else if (undefined === token) { value = context; } return {arg0.children}; };