@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
33 lines • 1.02 kB
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["iconProps", "color", "icon"],
_excluded2 = ["sx"];
import React from 'react';
import { Box } from '@mui/material';
import { Icon } from '@iconify/react';
import { jsx as _jsx } from "react/jsx-runtime";
var BoxIcon = function BoxIcon(_ref) {
var iconProps = _ref.iconProps,
color = _ref.color,
icon = _ref.icon,
props = _objectWithoutProperties(_ref, _excluded);
var sx = props.sx,
rest = _objectWithoutProperties(props, _excluded2);
return /*#__PURE__*/_jsx(Box, _extends({
sx: _extends({
width: '28px',
height: '28px',
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center'
}, sx)
}, rest, {
children: /*#__PURE__*/_jsx(Icon, _extends({
icon: icon,
color: color,
width: "24",
height: "24"
}, iconProps))
}));
};
export default BoxIcon;