Files
klz-cables.com/.pnpm-store/v10/files/3e/9215c083ddf4fe38d6a7a865dc58576f577c10528d952a37a8832e0be03f7d4db0982340c245d8ddb5a59e71cc967e245bb31bfb7e833424c58558d99f13c9
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

60 lines
1.2 KiB
Plaintext

'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import { Link, useConfig, useTranslation } from '@payloadcms/ui';
import { formatDate } from '@payloadcms/ui/shared';
import { formatAdminURL } from 'payload/shared';
import React from 'react';
export const CreatedAtCell = t0 => {
const {
collectionSlug,
docID,
globalSlug,
isTrashed,
rowData: t1
} = t0;
const {
id,
updatedAt
} = t1 === undefined ? {} : t1;
const {
config: t2
} = useConfig();
const {
admin: t3,
routes: t4
} = t2;
const {
dateFormat
} = t3;
const {
admin: adminRoute
} = t4;
const {
i18n
} = useTranslation();
const trashedDocPrefix = isTrashed ? "trash/" : "";
let to;
if (collectionSlug) {
to = formatAdminURL({
adminRoute,
path: `/collections/${collectionSlug}/${trashedDocPrefix}${docID}/versions/${id}`
});
}
if (globalSlug) {
to = formatAdminURL({
adminRoute,
path: `/globals/${globalSlug}/versions/${id}`
});
}
return _jsx(Link, {
href: to,
prefetch: false,
children: formatDate({
date: updatedAt,
i18n,
pattern: dateFormat
})
});
};
//# sourceMappingURL=index.js.map