UNPKG

@wulperstudio/cms

Version:
25 lines 796 B
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; var _excluded = ["children"]; import React from 'react'; import { WrapperComponent, Mark } from './styled'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; var WaterMark = function WaterMark(_ref) { var children = _ref.children, props = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/_jsxs(WrapperComponent, { children: [children, /*#__PURE__*/_jsx(Mark, { width: props.width, height: props.height, children: /*#__PURE__*/_jsx("img", { src: props.mark, alt: "WaterMark", width: "100%", height: "100%", style: { objectFit: 'contain' } }) })] }); }; export default WaterMark;