27 lines
688 B
TypeScript
27 lines
688 B
TypeScript
import React from 'react'
|
|
|
|
import { type AdminViewComponent } from '../../../../../packages/payload/src/config/types'
|
|
import { customNestedViewTitle } from '../../../shared'
|
|
|
|
const CustomNestedView: AdminViewComponent = () => {
|
|
return (
|
|
<div
|
|
style={{
|
|
marginTop: 'calc(var(--base) * 2)',
|
|
paddingLeft: 'var(--gutter-h)',
|
|
paddingRight: 'var(--gutter-h)',
|
|
}}
|
|
>
|
|
<h1 id="custom-view-title">{customNestedViewTitle}</h1>
|
|
<p>This custom view was added through the Payload config:</p>
|
|
<ul>
|
|
<li>
|
|
<code>components.views[key].Component</code>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default CustomNestedView
|