@wulperstudio/cms
Version:
Wulper Studio Library Components CMS
21 lines • 815 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
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", _extends({
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));
};