Files
klz-cables.com/.pnpm-store/v10/files/44/43e81b366bb5a47b33a96b8d056d5a043fb4c591919544a401e53a65dadc13b44dc3ace516e1c3576a32cce0986c4a3eb382b86a7f2f1590a2c1a9a3911eab
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
958 B
Plaintext

'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import { AnimateHeight } from '@payloadcms/ui';
import { PillSelector } from '@payloadcms/ui';
import React from 'react';
const baseClass = 'select-version-locales';
export const SelectLocales = ({
locales,
localeSelectorOpen,
onChange
}) => {
return /*#__PURE__*/_jsx(AnimateHeight, {
className: baseClass,
height: localeSelectorOpen ? 'auto' : 0,
id: `${baseClass}-locales`,
children: /*#__PURE__*/_jsx(PillSelector, {
onClick: ({
pill
}) => {
const newLocales = locales.map(locale => {
if (locale.name === pill.name) {
return {
...locale,
selected: !pill.selected
};
} else {
return locale;
}
});
onChange({
locales: newLocales
});
},
pills: locales
})
});
};
//# sourceMappingURL=index.js.map