import { jsx } from "react/jsx-runtime";
import { IconChevronLeft } from "../../icons/index.mjs";
/* empty css                                                                                                                                                                                       */
/* empty css                                                                                                                                                                                        */
/* empty css                                                                                                                                                                                                */
/* empty css                                                                                                                                                                                           */
/* empty css                                                                                                                                                                                           */
import { clsx } from "clsx";
import { ActionIcon } from "../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/ActionIcon/ActionIcon.mjs";
const PageShellBaseBackButton = ({ className, onClick, ...rest }) => {
  const handleClick = () => {
    if (onClick) {
      onClick();
    } else {
      history.back();
    }
  };
  return /* @__PURE__ */ jsx(
    ActionIcon,
    {
      variant: "default",
      onClick: handleClick,
      "aria-label": "Navigate Back",
      ...rest,
      className: clsx(className, "tiui-page-shell-back-button"),
      children: /* @__PURE__ */ jsx(IconChevronLeft, { size: 20 })
    }
  );
};
export {
  PageShellBaseBackButton
};
