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
18 lines
847 B
Plaintext
18 lines
847 B
Plaintext
import type { PayloadComponent, SanitizedCollectionConfig, SanitizedCollectionPermission, SanitizedConfig, SanitizedGlobalConfig, SanitizedGlobalPermission } from 'payload';
|
|
import type React from 'react';
|
|
import type { ViewToRender } from './index.js';
|
|
export type ViewFromConfig<TProps extends object> = {
|
|
Component?: React.FC<TProps>;
|
|
ComponentConfig?: PayloadComponent<TProps>;
|
|
};
|
|
export declare const getDocumentView: ({ collectionConfig, config, docPermissions, globalConfig, routeSegments, }: {
|
|
collectionConfig?: SanitizedCollectionConfig;
|
|
config: SanitizedConfig;
|
|
docPermissions: SanitizedCollectionPermission | SanitizedGlobalPermission;
|
|
globalConfig?: SanitizedGlobalConfig;
|
|
routeSegments: string[];
|
|
}) => {
|
|
View: ViewToRender;
|
|
viewKey: string;
|
|
} | null;
|
|
//# sourceMappingURL=getDocumentView.d.ts.map |