UNPKG

@wulperstudio/cms

Version:
21 lines 734 B
import React from 'react'; import { WrapperComponent, WrapperImage, Image, WrapperCard } from './styled'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; export var CardImage = function CardImage(props) { var _props$variant = props.variant, variant = _props$variant === void 0 ? 'fixed' : _props$variant; return /*#__PURE__*/_jsxs(WrapperComponent, { variant: variant, urlImage: props.urlImage, children: [variant === 'float' && /*#__PURE__*/_jsx(WrapperImage, { children: /*#__PURE__*/_jsx(Image, { src: props.urlImage, alt: props.title, width: 280, height: 340 }) }), /*#__PURE__*/_jsx(WrapperCard, { children: props.children })] }); };