Files
_hublib-web/dist/react/video-player/components/with-errors/index.js

9 lines
540 B
JavaScript
Raw Normal View History

2026-02-27 09:50:13 +03:00
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