Files
klz-cables.com/.pnpm-store/v10/files/e7/83ff6304ac04eea3d5976ee2fb33ec9b1641b427ab930bec7a8019fb9c84c9e9d12c04c7d31a3254bb672e2dbc389154dd2df303dc4a3df9e7b7f5ef08b3d3
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

39 lines
1.1 KiB
Plaintext

import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { useRouteCache } from '../../../../providers/RouteCache/index.js';
import { useTranslation } from '../../../../providers/Translation/index.js';
import { useDocumentDrawer } from '../../../DocumentDrawer/index.js';
import { ListSelectionButton } from '../../../ListSelection/index.js';
export const EditFolderAction = ({
id,
folderCollectionSlug
}) => {
const {
clearRouteCache
} = useRouteCache();
const {
t
} = useTranslation();
const [FolderDocumentDrawer,, {
closeDrawer,
openDrawer
}] = useDocumentDrawer({
id,
collectionSlug: folderCollectionSlug
});
if (!id) {
return null;
}
return /*#__PURE__*/_jsxs(_Fragment, {
children: [/*#__PURE__*/_jsx(ListSelectionButton, {
onClick: openDrawer,
type: "button",
children: t('general:edit')
}), /*#__PURE__*/_jsx(FolderDocumentDrawer, {
onSave: () => {
closeDrawer();
clearRouteCache();
}
})]
});
};
//# sourceMappingURL=index.js.map