@lonli-lokli/react-mosaic-component
Version:
A React Tiling Window Manager
34 lines (33 loc) • 1.51 kB
JavaScript
// libs/react-mosaic-component/src/lib/buttons/defaultToolbarControls.tsx
import React from "react";
import { ExpandButton } from "./ExpandButton.mjs";
import { RemoveButton } from "./RemoveButton.mjs";
import { ReplaceButton } from "./ReplaceButton.mjs";
import { SplitButton } from "./SplitButton.mjs";
import { AddTabButton } from "./AddTabButton.mjs";
import { TabSplitButton } from "./TabSplitButton.mjs";
import { TabRemoveButton } from "./TabRemoveButton.mjs";
var DEFAULT_PANEL_CONTROLS_IN_TABS = React.Children.toArray([
/* @__PURE__ */ React.createElement(RemoveButton, null)
]);
var createDefaultTabsControls = (path) => React.Children.toArray([
/* @__PURE__ */ React.createElement(TabSplitButton, { path }),
/* @__PURE__ */ React.createElement(TabRemoveButton, { path })
]);
var DEFAULT_PANEL_CONTROLS_WITH_CREATION = React.Children.toArray([
/* @__PURE__ */ React.createElement(ReplaceButton, null),
/* @__PURE__ */ React.createElement(SplitButton, null),
/* @__PURE__ */ React.createElement(AddTabButton, null),
/* @__PURE__ */ React.createElement(ExpandButton, null),
/* @__PURE__ */ React.createElement(RemoveButton, null)
]);
var DEFAULT_PANEL_CONTROLS_WITHOUT_CREATION = React.Children.toArray([
/* @__PURE__ */ React.createElement(ExpandButton, null),
/* @__PURE__ */ React.createElement(RemoveButton, null)
]);
export {
DEFAULT_PANEL_CONTROLS_IN_TABS,
DEFAULT_PANEL_CONTROLS_WITHOUT_CREATION,
DEFAULT_PANEL_CONTROLS_WITH_CREATION,
createDefaultTabsControls
};