Files
klz-cables.com/.pnpm-store/v10/files/1a/63610f04db2861aa3e8c1b1502e8e0e1d9fd0c2ceb19194d24917a983cd0ca68645ce67471d1832320e59d8e0adf6716a2994f0e4714c5d6f1081832c1104a
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

41 lines
1.1 KiB
Plaintext

'use client';
import { jsx as _jsx } 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 = 'multi-value-label';
export const MultiValueLabel = props => {
const {
data,
selectProps: t0
} = props;
const {
customProps: t1
} = t0 === undefined ? {} : t0;
const {
draggableProps,
editableProps
} = t1 === undefined ? {} : t1;
const {
i18n
} = useTranslation();
const className = `${baseClass}__text`;
const labelText = data.label ? getTranslation(data.label, i18n) : "";
const titleText = typeof labelText === "string" ? labelText : "";
return _jsx("div", {
className: baseClass,
title: titleText,
children: _jsx(SelectComponents.MultiValueLabel, {
...props,
innerProps: {
className,
...(editableProps && editableProps(data, className, props.selectProps) || {}),
...(draggableProps || {})
}
})
});
};
//# sourceMappingURL=index.js.map