Files
klz-cables.com/.pnpm-store/v10/files/d2/e8f889b7e0ef48543df18f42168e9ba111f600ae8c19ca1a1866b824d0ad0174b94c313c7cbf3fa9455973d63522ddc1640c8fa3818925e59bbf4d017f89d0
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

40 lines
1.1 KiB
Plaintext

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { formatAdminURL } from 'payload/shared';
import React from 'react';
import { useConfig } from '../../../providers/Config/index.js';
import { useTranslation } from '../../../providers/Translation/index.js';
import { Link } from '../../Link/index.js';
import { ColoredFolderIcon } from '../ColoredFolderIcon/index.js';
import './index.scss';
const baseClass = 'browse-by-folder-button';
export function BrowseByFolderButton({
active
}) {
const {
t
} = useTranslation();
const {
config
} = useConfig();
const {
admin: {
routes: {
browseByFolder: foldersRoute
}
},
routes: {
admin: adminRoute
}
} = config;
return /*#__PURE__*/_jsxs(Link, {
className: [baseClass, active && 'active'].filter(Boolean).join(' '),
href: formatAdminURL({
adminRoute,
path: foldersRoute
}),
id: "browse-by-folder",
prefetch: false,
children: [/*#__PURE__*/_jsx(ColoredFolderIcon, {}), t('folder:browseByFolder')]
});
}
//# sourceMappingURL=index.js.map