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

52 lines
1.1 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { ReactSelect, useTranslation } from '@payloadcms/ui';
import React from 'react';
export const LanguageSelector = props => {
const $ = _c(8);
const {
languageOptions
} = props;
const {
i18n,
switchLanguage
} = useTranslation();
let t0;
if ($[0] !== switchLanguage) {
t0 = async option => {
await switchLanguage(option.value);
};
$[0] = switchLanguage;
$[1] = t0;
} else {
t0 = $[1];
}
let t1;
if ($[2] !== i18n || $[3] !== languageOptions || $[4] !== t0) {
let t2;
if ($[6] !== i18n) {
t2 = language => language.value === i18n.language;
$[6] = i18n;
$[7] = t2;
} else {
t2 = $[7];
}
t1 = _jsx(ReactSelect, {
inputId: "language-select",
isClearable: false,
onChange: t0,
options: languageOptions,
value: languageOptions.find(t2)
});
$[2] = i18n;
$[3] = languageOptions;
$[4] = t0;
$[5] = t1;
} else {
t1 = $[5];
}
return t1;
};
//# sourceMappingURL=LanguageSelector.js.map