import React from "react"; import { OverlaysProvider } from "@blueprintjs/core"; import { CLASSPREFIX as eccgui } from "../../configuration/constants"; import { useDropzoneMonitor } from "./helper"; export interface ApplicationContainerProps extends React.HTMLAttributes { /** * If set then the `element` is extended automatically by a `monitor-dropzone` data attribute. * This need to match with a `dropzone-for` data attribute on available dropzones for dragged elements. */ monitorDropzonesFor?: string[]; } export const ApplicationContainer = ({ children, className = "", monitorDropzonesFor = [], ...otherDivProps }: ApplicationContainerProps) => { const containerRef = React.useRef(null); useDropzoneMonitor(monitorDropzonesFor); return (
{children}
); }; export default ApplicationContainer;