import { Button } from '@payloadcms/ui/elements/Button' import LinkImport from 'next/link.js' import React from 'react' import type { AdminViewProps } from '../../../../../packages/payload/types.js' import { customNestedViewTitle, customViewPath } from '../../../shared.js' const Link = (LinkImport.default || LinkImport) as unknown as typeof LinkImport.default export const CustomNestedView: React.FC = ({ initPageResult }) => { const { req: { payload: { config: { routes: { admin: adminRoute }, }, }, }, } = initPageResult return (

{customNestedViewTitle}

This custom view was added through the Payload config:

     
) }