Files
klz-cables.com/.pnpm-store/v10/files/5d/0ebd9192935ba33872fc39491f9ee01f71c651e37114afe5f0e28f178a9e0d0af3cd469bf23b2109c663e1057ba5efa5df3b7ab4f03e619eb7834c0912eacc
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

37 lines
1.0 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 { TrashIcon } from '../../icons/Trash/index.js';
import { useConfig } from '../../providers/Config/index.js';
import { useDocumentInfo } from '../../providers/DocumentInfo/index.js';
import { useTranslation } from '../../providers/Translation/index.js';
import './index.scss';
const baseClass = 'trash-banner';
export const TrashBanner = () => {
const {
getEntityConfig
} = useConfig();
const {
collectionSlug
} = useDocumentInfo();
const collectionConfig = getEntityConfig({
collectionSlug
});
const {
labels
} = collectionConfig;
const {
i18n
} = useTranslation();
return _jsxs("div", {
className: baseClass,
children: [_jsx(TrashIcon, {}), _jsx("p", {
children: i18n.t("general:documentIsTrashed", {
label: `${getTranslation(labels?.singular, i18n)}`
})
})]
});
};
//# sourceMappingURL=index.js.map