Files
klz-cables.com/.pnpm-store/v10/files/27/2e9cec0f171564ae9ad1b9f84dcf94ea7e2eb2fa6b79c15cdddd054c12c4fd85fced91ab98f24e9384bcc9f11ccb56683f8d4c20413cfe8c14be143497474f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

61 lines
1.4 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { formatAdminURL } from 'payload/shared';
import React from 'react';
import { LogOutIcon } from '../../icons/LogOut/index.js';
import { useConfig } from '../../providers/Config/index.js';
import { useTranslation } from '../../providers/Translation/index.js';
import { Link } from '../Link/index.js';
const baseClass = 'nav';
export const Logout = t0 => {
const $ = _c(5);
const {
tabIndex: t1
} = t0;
const tabIndex = t1 === undefined ? 0 : t1;
const {
t
} = useTranslation();
const {
config
} = useConfig();
const {
admin: t2,
routes: t3
} = config;
const {
routes: t4
} = t2;
const {
logout: logoutRoute
} = t4;
const {
admin: adminRoute
} = t3;
let t5;
if ($[0] !== adminRoute || $[1] !== logoutRoute || $[2] !== t || $[3] !== tabIndex) {
t5 = _jsx(Link, {
"aria-label": t("authentication:logOut"),
className: `${baseClass}__log-out`,
href: formatAdminURL({
adminRoute,
path: logoutRoute
}),
prefetch: false,
tabIndex,
title: t("authentication:logOut"),
children: _jsx(LogOutIcon, {})
});
$[0] = adminRoute;
$[1] = logoutRoute;
$[2] = t;
$[3] = tabIndex;
$[4] = t5;
} else {
t5 = $[4];
}
return t5;
};
//# sourceMappingURL=index.js.map