Files
klz-cables.com/.pnpm-store/v10/files/d2/20c1c13685248d651d65d2d5d7a0beb5db7add768dc70064677a367004e5bddc980694acc82f70d58288e359fe5d647cef12c426b90b27ee1024b9c38a9298
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

70 lines
1.8 KiB
Plaintext

'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import React from 'react';
import { FormSubmit } from '../../forms/Submit/index.js';
import { useTranslation } from '../../providers/Translation/index.js';
import { Button } from '../Button/index.js';
import './index.scss';
const baseClass = 'drawer-action-header';
export const DrawerActionHeader = t0 => {
const $ = _c(10);
const {
cancelLabel,
className,
onCancel,
onSave,
saveLabel,
title
} = t0;
const {
t
} = useTranslation();
let t1;
if ($[0] !== className) {
t1 = [baseClass, className].filter(Boolean);
$[0] = className;
$[1] = t1;
} else {
t1 = $[1];
}
const t2 = t1.join(" ");
let t3;
if ($[2] !== cancelLabel || $[3] !== onCancel || $[4] !== onSave || $[5] !== saveLabel || $[6] !== t || $[7] !== t2 || $[8] !== title) {
t3 = _jsx("div", {
className: t2,
children: _jsxs("div", {
className: `${baseClass}__content`,
children: [_jsx("h1", {
className: `${baseClass}__title`,
children: title
}), _jsxs("div", {
className: `${baseClass}__actions`,
children: [_jsx(Button, {
"aria-label": t("general:cancel"),
buttonStyle: "secondary",
onClick: onCancel,
children: cancelLabel || t("general:cancel")
}), _jsx(FormSubmit, {
"aria-label": t("general:applyChanges"),
onClick: onSave,
children: saveLabel || t("general:applyChanges")
})]
})]
})
});
$[2] = cancelLabel;
$[3] = onCancel;
$[4] = onSave;
$[5] = saveLabel;
$[6] = t;
$[7] = t2;
$[8] = title;
$[9] = t3;
} else {
t3 = $[9];
}
return t3;
};
//# sourceMappingURL=index.js.map