import { jsx as _jsx } from "react/jsx-runtime";
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
import { selectIsDensityDialogOpen } from "../../../model/store/ui/uiSelectors.js";
import { DensityDialog } from "../../densityDialog/DensityDialog.js";
/**
 * @internal
 */
export function DensityDialogProvider() {
    const isOpen = useDashboardSelector(selectIsDensityDialogOpen);
    if (!isOpen) {
        return null;
    }
    return _jsx(DensityDialog, {});
}
//# sourceMappingURL=DensityDialogProvider.js.map