Files
klz-cables.com/.pnpm-store/v10/files/33/31f736bd0ed6e7c4eef5933ab4a09d1200f63cda843795cae4964657b5c29fd2c1d5db80ed3f46b6d5cb2fcf90fe107633777cbe76f7ee754358c9bde9d3b6
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

29 lines
772 B
Plaintext

// src/font.tsx
import { jsx } from "react/jsx-runtime";
var Font = ({
fontFamily,
fallbackFontFamily,
webFont,
fontStyle = "normal",
fontWeight = 400
}) => {
const src = webFont ? `src: url(${webFont.url}) format('${webFont.format}');` : "";
const style = `
@font-face {
font-family: '${fontFamily}';
font-style: ${fontStyle};
font-weight: ${fontWeight};
mso-font-alt: '${Array.isArray(fallbackFontFamily) ? fallbackFontFamily[0] : fallbackFontFamily}';
${src}
}
* {
font-family: '${fontFamily}', ${Array.isArray(fallbackFontFamily) ? fallbackFontFamily.join(", ") : fallbackFontFamily};
}
`;
return /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: style } });
};
export {
Font
};