import e from"react";import{youtubeParser as r}from"../../../utils/string.js";import{AspectRatio as t}from"../../../node_modules/@chakra-ui/layout/dist/esm/aspect-ratio.js";export default function(a){var o=a.embedVideoUrl;return e.createElement(e.Fragment,null,o?e.createElement(t,{maxW:"650px",ratio:1,className:"embed-video"},e.createElement("iframe",{width:"560",height:"315",src:r(o),title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})):"",e.createElement("style",{global:!0,jsx:!0},"\n        .embed-video {\n          margin: auto;\n          margin-top: 15px;\n        }\n      "))}
//# sourceMappingURL=YouTubeVideo.js.map
