Files
klz-cables.com/.pnpm-store/v10/files/0a/0dfb80f894741eae56ceac1ebec82632db5d3f1f0464f241a32cc8e3388e0a1e11276dc248c36b83c8a226fc396b085f7167c2aa4eae0d5e2801a92e1db63e
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

27 lines
735 B
Plaintext

import { jsx as _jsx } from "react/jsx-runtime";
import { useModal } from '@faceless-ui/modal';
import { XIcon } from '../../icons/X/index.js';
import { useTranslation } from '../../providers/Translation/index.js';
import './index.scss';
const baseClass = 'close-modal-button';
export function CloseModalButton({
slug,
className
}) {
const {
closeModal
} = useModal();
const {
t
} = useTranslation();
return /*#__PURE__*/_jsx("button", {
"aria-label": t('general:close'),
className: [baseClass, className].filter(Boolean).join(' '),
onClick: () => {
closeModal(slug);
},
type: "button",
children: /*#__PURE__*/_jsx(XIcon, {})
}, "close-button");
}
//# sourceMappingURL=index.js.map