import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import React from "react"; import VideoError from "./video-error"; import styles from "./with-errors.module.scss"; const WithErrors = ({ showErrors = false, children, ...props }) => { return (_jsxs("div", { className: styles.videoMain, style: { aspectRatio: props.options.aspectRatio }, children: [showErrors && _jsx(VideoError, { className: styles.errors }), React.cloneElement(children, { ...props })] })); }; export default WithErrors; //# sourceMappingURL=index.js.map