@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
25 lines • 1.04 kB
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["hoverStyle", "shadow", "padding", "component"];
import React from 'react';
import { CardFlex } from './styled';
import { jsx as _jsx } from "react/jsx-runtime";
export var CardFlexible = function CardFlexible(_ref) {
var _ref$hoverStyle = _ref.hoverStyle,
hoverStyle = _ref$hoverStyle === void 0 ? 'shadow' : _ref$hoverStyle,
_ref$shadow = _ref.shadow,
shadow = _ref$shadow === void 0 ? 'none' : _ref$shadow,
_ref$padding = _ref.padding,
padding = _ref$padding === void 0 ? '15px' : _ref$padding,
_ref$component = _ref.component,
component = _ref$component === void 0 ? 'article' : _ref$component,
props = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/_jsx(CardFlex, _extends({
hoverStyle: hoverStyle,
shadow: shadow,
as: component,
padding: padding
}, props, {
children: props.children
}));
};