UNPKG

@wulperstudio/cms

Version:
27 lines (26 loc) 1.07 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.BlockIframeMedia = void 0; var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); var _react = _interopRequireDefault(require("react")); var _jsxRuntime = require("react/jsx-runtime"); var _excluded = ["src", "height", "width"]; var BlockIframeMedia = exports.BlockIframeMedia = function BlockIframeMedia(_ref) { var src = _ref.src, height = _ref.height, width = _ref.width, props = (0, _objectWithoutProperties2["default"])(_ref, _excluded); return /*#__PURE__*/(0, _jsxRuntime.jsx)("iframe", Object.assign({ width: width || '100%', height: height || '426', src: src, title: "YouTube video player", frameBorder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullScreen", allowFullScreen: true, loading: "lazy" }, props)); };