@wener/console
Version:
Base console UI toolkit
24 lines (23 loc) • 1.07 kB
JavaScript
import React from "react";
import { PiMinusThin, PiSquareThin, PiXThin } from "react-icons/pi";
import { clsx } from "clsx";
import { getWindowDragCancelClassname } from "../const.js";
import styles from "./Windows.module.css";
export const WindowsWindowController = ({ close, minimize, maximize }) => {
return /*#__PURE__*/ React.createElement("div", {
className: clsx("WindowController", getWindowDragCancelClassname(), styles.WindowController)
}, /*#__PURE__*/ React.createElement("button", {
type: "button",
"data-action": "minimize",
...minimize
}, /*#__PURE__*/ React.createElement(PiMinusThin, null)), /*#__PURE__*/ React.createElement("button", {
type: "button",
"data-action": "maximize",
...maximize
}, /*#__PURE__*/ React.createElement(PiSquareThin, null)), /*#__PURE__*/ React.createElement("button", {
type: "button",
"data-action": "close",
...close
}, /*#__PURE__*/ React.createElement(PiXThin, null)));
};
//# sourceMappingURL=WindowsWindowController.js.map