/* @oracle/oraclejet-preact: undefined */
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var jsxRuntime = require('preact/jsx-runtime');
var useTheme = require('../useTheme-b256f71f.js');
require('preact/hooks');
require('../LayerHost-8ec73638.js');
require('../Common/themes/redwood/theme.js');
require('../Common/themes/themeContract.css.js');
require('preact');
require('preact/compat');
require('../UNSAFE_Layer/themes/LayerHostStyles.css.js');


// Returns a component that renders one of the given icon components based on theme
const withThemeIcon = (themeIcons) => {
    return (props) => {
        const { name } = useTheme.useTheme();
        const Component = themeIcons[name];
        return jsxRuntime.jsx(Component, { ...props });
    };
};

exports.withThemeIcon = withThemeIcon;
//# sourceMappingURL=PRIVATE_withThemeIcon.js.map
