import { createHotContext as __vite__createHotContext } from "/@vite/client";import.meta.hot = __vite__createHotContext("/src/components/AdminLink.tsx");import __vite__cjsImport0_react_jsxDevRuntime from "/@fs/home/runner/workspace/node_modules/.vite/deps/react_jsx-dev-runtime.js?v=c4080d1c"; const jsxDEV = __vite__cjsImport0_react_jsxDevRuntime["jsxDEV"];
import RefreshRuntime from "/@react-refresh";
const inWebWorker = typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope;
let prevRefreshReg;
let prevRefreshSig;
if (import.meta.hot && !inWebWorker) {
  if (!window.__vite_plugin_react_preamble_installed__) {
    throw new Error("@vitejs/plugin-react can't detect preamble. Something is wrong. See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201");
  }
  prevRefreshReg = window.$RefreshReg$;
  prevRefreshSig = window.$RefreshSig$;
  window.$RefreshReg$ = (type, id) => {
    RefreshRuntime.register(type, "/home/runner/workspace/client/src/components/AdminLink.tsx " + id);
  };
  window.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
}
var _s = $RefreshSig$();
import { useLocation } from "/@fs/home/runner/workspace/node_modules/.vite/deps/wouter.js?v=c4080d1c";
import { Button } from "/src/components/ui/button.tsx";
import { useTranslation } from "/src/lib/i18n/TranslationContext.tsx";
export default function AdminLink() {
  _s();
  const [, setLocation] = useLocation();
  const { t } = useTranslation();
  return /* @__PURE__ */ jsxDEV(
    Button,
    {
      variant: "ghost",
      className: "text-sm",
      onClick: () => setLocation("/admin/login"),
      children: t.nav.admin
    },
    void 0,
    false,
    {
      fileName: "/home/runner/workspace/client/src/components/AdminLink.tsx",
      lineNumber: 10,
      columnNumber: 5
    },
    this
  );
}
_s(AdminLink, "P2nqR+R9h35BpFqmfJmUcDI+2OE=", false, function() {
  return [useLocation, useTranslation];
});
_c = AdminLink;
var _c;
$RefreshReg$(_c, "AdminLink");
if (import.meta.hot && !inWebWorker) {
  window.$RefreshReg$ = prevRefreshReg;
  window.$RefreshSig$ = prevRefreshSig;
}
if (import.meta.hot && !inWebWorker) {
  RefreshRuntime.__hmr_import(import.meta.url).then((currentExports) => {
    RefreshRuntime.registerExportsForReactRefresh("/home/runner/workspace/client/src/components/AdminLink.tsx", currentExports);
    import.meta.hot.accept((nextExports) => {
      if (!nextExports) return;
      const invalidateMessage = RefreshRuntime.validateRefreshBoundaryAndEnqueueUpdate("/home/runner/workspace/client/src/components/AdminLink.tsx", currentExports, nextExports);
      if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage);
    });
  });
}

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IkFBU0k7MkJBVEo7QUFBb0Isb0JBQWdCO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQ3BDLFNBQVNBLGNBQWM7QUFDdkIsU0FBU0Msc0JBQXNCO0FBRS9CLHdCQUF3QkMsWUFBWTtBQUFBQyxLQUFBO0FBQ2xDLFFBQU0sR0FBR0MsV0FBVyxJQUFJQyxZQUFZO0FBQ3BDLFFBQU0sRUFBRUMsRUFBRSxJQUFJTCxlQUFlO0FBRTdCLFNBQ0U7QUFBQSxJQUFDO0FBQUE7QUFBQSxNQUNDLFNBQVE7QUFBQSxNQUNSLFdBQVU7QUFBQSxNQUNWLFNBQVMsTUFBTUcsWUFBWSxjQUFjO0FBQUEsTUFFeENFLFlBQUVDLElBQUlDO0FBQUFBO0FBQUFBLElBTFQ7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLEVBTUE7QUFFSjtBQUFDTCxHQWJ1QkQsV0FBUztBQUFBLFVBQ1BHLGFBQ1ZKLGNBQWM7QUFBQTtBQUFBUSxLQUZOUDtBQUFTLElBQUFPO0FBQUFDLGFBQUFELElBQUEiLCJuYW1lcyI6WyJCdXR0b24iLCJ1c2VUcmFuc2xhdGlvbiIsI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