Files
klz-cables.com/.pnpm-store/v10/files/a6/3e022af291ce74e45d135b213d6ac2fd55f045939a2245f15d94662fa36ba953f970d9701538b3856f6a291995d010b264896ceb54d44824356cd4d96908ad
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

23 lines
649 B
Plaintext

import { jsx as _jsx } from "react/jsx-runtime";
import { isReactServerComponentOrFunction } from 'payload/shared';
import React from 'react';
export const WithServerSideProps = ({
Component,
serverOnlyProps,
...rest
}) => {
if (Component) {
const WithServerSideProps = passedProps => {
const propsWithServerOnlyProps = {
...passedProps,
...(isReactServerComponentOrFunction(Component) ? serverOnlyProps ?? {} : {})
};
return /*#__PURE__*/_jsx(Component, {
...propsWithServerOnlyProps
});
};
return WithServerSideProps(rest);
}
return null;
};
//# sourceMappingURL=index.js.map