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

36 lines
897 B
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import { getTranslation } from '@payloadcms/translations';
import React from 'react';
import { useTranslation } from '../../providers/Translation/index.js';
export function isComponent(description) {
return /*#__PURE__*/React.isValidElement(description);
}
export function ViewDescription(props) {
const $ = _c(3);
const {
i18n
} = useTranslation();
const {
description
} = props;
if (description) {
let t0;
if ($[0] !== description || $[1] !== i18n) {
t0 = _jsx("div", {
className: "custom-view-description",
children: getTranslation(description, i18n)
});
$[0] = description;
$[1] = i18n;
$[2] = t0;
} else {
t0 = $[2];
}
return t0;
}
return null;
}
//# sourceMappingURL=index.js.map