12 lines
617 B
JavaScript
12 lines
617 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
import React from "react";
|
|
import PlayerExtension from "../player-extension";
|
|
import VideoProcessing from "./video-processing";
|
|
import styles from "./with-processing.module.scss";
|
|
const WithProcessing = ({ showProcessing = false, children, ...props }) => {
|
|
return (_jsxs(PlayerExtension, { className: props.className, children: [showProcessing && _jsx(VideoProcessing, { className: styles.processing }), React.cloneElement(children, {
|
|
...props,
|
|
})] }));
|
|
};
|
|
export default WithProcessing;
|
|
//# sourceMappingURL=index.js.map
|