/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-7eefd09
 * Released under the MIT license.
 */

import { jsx as _jsx } from "react/jsx-runtime";
import { Icon } from './Icon.js';
export function wrapIcon(name, icon) {
    function IconWrapper(props) {
        return (
        // use custom size to support legacy icons
        _jsx(Icon, { qa: name, "aria-hidden": "true", ...props, children: icon }));
    }
    IconWrapper.displayName = name;
    return IconWrapper;
}

        