import { memo } from "react";
import { jsxDEV } from "react/jsx-dev-runtime";
import { useLogout } from "./Identity/useLogout.js";
var _jsxFileName = "/__w/interface/interface/packages/admin/src/components/LogoutLink.tsx";
const defaultComponent = ({
  onClick,
  children
}) => /* @__PURE__ */ jsxDEV("a", {
  href: "#",
  onClick,
  children
}, void 0, false, {
  fileName: _jsxFileName,
  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: _jsxFileName,
    lineNumber: 24,
    columnNumber: 9
  }, void 0);
});
LogoutLink.displayName = "LogoutLink";
export {
  LogoutLink
};
//# sourceMappingURL=LogoutLink.js.map
