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

38 lines
1.2 KiB
Plaintext

'use client';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { getTranslation } from '@payloadcms/translations';
import React from 'react';
import { components as SelectComponents } from 'react-select';
import { useTranslation } from '../../../providers/Translation/index.js';
import './index.scss';
const baseClass = 'value-container';
export const ValueContainer = props => {
const {
selectProps: t0
} = props;
const {
customProps,
value
} = t0 === undefined ? {} : t0;
const {
i18n
} = useTranslation();
let titleText = "";
if (value && !Array.isArray(value) && typeof value === "object" && "label" in value) {
const labelText = value.label ? getTranslation(value.label, i18n) : "";
titleText = typeof labelText === "string" ? labelText : "";
}
return _jsxs("div", {
className: baseClass,
ref: customProps?.droppableRef,
title: titleText,
children: [customProps?.valueContainerLabel && _jsx("span", {
className: `${baseClass}__label`,
children: customProps?.valueContainerLabel
}), _jsx(SelectComponents.ValueContainer, {
...props
})]
});
};
//# sourceMappingURL=index.js.map