Files
klz-cables.com/.pnpm-store/v10/files/7d/2d7f8992af90d3b659986071ff88e096009a51f5e65dad46cc42d48eef3e8812d98b8610fb8ac7ccdfbdf40f53990a48a6b77eae373e40210624d17b478aea
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

44 lines
931 B
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { SelectField, useTranslation } from '@payloadcms/ui';
import React from 'react';
export const LocaleSelector = t0 => {
const $ = _c(6);
const {
localeOptions,
onChange
} = t0;
const {
t
} = useTranslation();
let t1;
if ($[0] !== localeOptions || $[1] !== onChange || $[2] !== t) {
let t2;
if ($[4] !== onChange) {
t2 = value => onChange(value);
$[4] = onChange;
$[5] = t2;
} else {
t2 = $[5];
}
t1 = _jsx(SelectField, {
field: {
name: "locale",
label: t("general:locale"),
options: localeOptions
},
onChange: t2,
path: "locale"
});
$[0] = localeOptions;
$[1] = onChange;
$[2] = t;
$[3] = t1;
} else {
t1 = $[3];
}
return t1;
};
//# sourceMappingURL=index.js.map