"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const index = require("../../icons/index.cjs");
;/* empty css                                                                                                                                                                                        */
;/* empty css                                                                                                                                                                                         */
;/* empty css                                                                                                                                                                                                 */
;/* empty css                                                                                                                                                                                            */
;/* empty css                                                                                                                                                                                            */
const clsx = require("clsx");
const ActionIcon = require("../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.cjs");
const PageShellBaseBackButton = ({ className, onClick, ...rest }) => {
  const handleClick = () => {
    if (onClick) {
      onClick();
    } else {
      history.back();
    }
  };
  return /* @__PURE__ */ jsxRuntime.jsx(
    ActionIcon.ActionIcon,
    {
      variant: "default",
      onClick: handleClick,
      "aria-label": "Navigate Back",
      ...rest,
      className: clsx.clsx(className, "tiui-page-shell-back-button"),
      children: /* @__PURE__ */ jsxRuntime.jsx(index.IconChevronLeft, { size: 20 })
    }
  );
};
exports.PageShellBaseBackButton = PageShellBaseBackButton;
