"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const react = require("react");
const reactIdentity = require("@contember/react-identity");
const defaultComponent = ({ onClick, children }) => /* @__PURE__ */ jsxRuntime.jsx("a", { href: "#", onClick, children });
const LogoutLink = react.memo((props) => {
  const onLogout = reactIdentity.useLogout();
  const Component = props.Component || defaultComponent;
  return /* @__PURE__ */ jsxRuntime.jsx(Component, { onClick: onLogout, children: props.children });
});
LogoutLink.displayName = "LogoutLink";
exports.LogoutLink = LogoutLink;
//# sourceMappingURL=LogoutLink.cjs.map
