import type { AdminViewServerProps } from 'payload' import { Button } from '@payloadcms/ui' import LinkImport from 'next/link.js' import React from 'react' import { customNestedViewTitle, customViewPath } from '../../../shared.js' const Link = (LinkImport.default || LinkImport) as unknown as typeof LinkImport.default export function CustomNestedView({ initPageResult }: AdminViewServerProps) { const { req: { payload: { config: { routes: { admin: adminRoute }, }, }, }, } = initPageResult return (
This custom view was added through the Payload config:
components.views[key].Component