import { jsxDEV } from "react/jsx-dev-runtime";
import { memo } from "react";
import { useLogout } from "@contember/react-identity";
const defaultComponent = ({ onClick, children }) => /* @__PURE__ */ jsxDEV("a", { href: "#", onClick, children }, void 0, false, {
  fileName: "/__w/interface/interface/packages/admin/src/components/LogoutLink.tsx",
  lineNumber: 16,
  columnNumber: 2
}, void 0);
const LogoutLink = memo((props) => {
  const onLogout = useLogout();
  const Component = props.Component || defaultComponent;
  return /* @__PURE__ */ jsxDEV(Component, { onClick: onLogout, children: props.children }, void 0, false, {
    fileName: "/__w/interface/interface/packages/admin/src/components/LogoutLink.tsx",
    lineNumber: 27,
    columnNumber: 9
  }, void 0);
});
LogoutLink.displayName = "LogoutLink";
export {
  LogoutLink
};
//# sourceMappingURL=LogoutLink.js.map
