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

86 lines
2.1 KiB
Plaintext

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent';
import React from 'react';
export const OGImage = ({
description,
Fallback,
fontFamily = 'Arial, sans-serif',
Icon,
importMap,
leader,
title
}) => {
const IconComponent = RenderServerComponent({
clientProps: {
fill: 'white'
},
Component: Icon,
Fallback,
importMap
});
return /*#__PURE__*/_jsxs("div", {
style: {
backgroundColor: '#000',
color: '#fff',
display: 'flex',
flexDirection: 'column',
fontFamily,
height: '100%',
justifyContent: 'space-between',
padding: '100px',
width: '100%'
},
children: [/*#__PURE__*/_jsxs("div", {
style: {
display: 'flex',
flexDirection: 'column',
flexGrow: 1,
fontSize: 50,
height: '100%'
},
children: [leader && /*#__PURE__*/_jsx("div", {
style: {
fontSize: 30,
marginBottom: 10
},
children: leader
}), /*#__PURE__*/_jsx("p", {
style: {
display: '-webkit-box',
fontSize: 90,
lineHeight: 1,
marginBottom: 0,
marginTop: 0,
textOverflow: 'ellipsis',
WebkitBoxOrient: 'vertical',
WebkitLineClamp: 2
},
children: title
}), description && /*#__PURE__*/_jsx("p", {
style: {
display: '-webkit-box',
flexGrow: 1,
fontSize: 30,
lineHeight: 1,
marginBottom: 0,
marginTop: 40,
textOverflow: 'ellipsis',
WebkitBoxOrient: 'vertical',
WebkitLineClamp: 2
},
children: description
})]
}), /*#__PURE__*/_jsx("div", {
style: {
alignItems: 'flex-end',
display: 'flex',
flexShrink: 0,
height: '38px',
justifyContent: 'center',
width: '38px'
},
children: IconComponent
})]
});
};
//# sourceMappingURL=image.js.map