"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Box = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const styled_components_1 = __importDefault(require("styled-components"));
const utils_1 = require("../../theme/utils");
const Component = styled_components_1.default.div(({ theme, variant, margin, display, shadow, radius, bg }) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (theme.BOX[variant] || {})), { margin: utils_1.getMargin({ theme, margin }) }), (display ? { display } : {})), (shadow ? { boxShadow: theme.SHADOW[shadow] } : {})), (radius ? { borderRadius: theme.RADIUS[radius] } : {})), (bg ? { backgroundColor: theme.COLOR[bg] } : {}))));
const Box = (props) => {
    return jsx_runtime_1.jsx(Component, Object.assign({}, props), void 0);
};
exports.Box = Box;
//# sourceMappingURL=Box.js.map