UNPKG

@wulperstudio/cms

Version:
20 lines 761 B
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; var _excluded = ["src", "height", "width"]; import React from 'react'; import { jsx as _jsx } from "react/jsx-runtime"; export var BlockIframeMedia = function BlockIframeMedia(_ref) { var src = _ref.src, height = _ref.height, width = _ref.width, props = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/_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)); };