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

41 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'use client';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { formatFilesize } from 'payload/shared';
import React from 'react';
import { CopyToClipboard } from '../../CopyToClipboard/index.js';
import './index.scss';
const baseClass = 'file-meta';
export const FileMeta = props => {
const {
filename,
filesize,
height,
mimeType,
url: fileURL,
width
} = props;
return /*#__PURE__*/_jsxs("div", {
className: baseClass,
children: [/*#__PURE__*/_jsxs("div", {
className: `${baseClass}__url`,
children: [/*#__PURE__*/_jsx("a", {
href: fileURL,
rel: "noopener noreferrer",
target: "_blank",
children: filename
}), /*#__PURE__*/_jsx(CopyToClipboard, {
defaultMessage: "Copy URL",
value: fileURL
})]
}), /*#__PURE__*/_jsxs("div", {
className: `${baseClass}__size-type`,
children: [formatFilesize(filesize), typeof width === 'number' && typeof height === 'number' && /*#__PURE__*/_jsxs(React.Fragment, {
children: [" - ", width, "x", height]
}), mimeType && /*#__PURE__*/_jsxs(React.Fragment, {
children: [" - ", mimeType]
})]
})]
});
};
//# sourceMappingURL=index.js.map