Files
payload/test/live-preview/globals/Header.ts
2023-10-24 23:32:55 -04:00

20 lines
361 B
TypeScript

import type { GlobalConfig } from '../../../packages/payload/src/globals/config/types'
import link from '../fields/link'
export const Header: GlobalConfig = {
slug: 'header',
access: {
read: () => true,
update: () => true,
},
fields: [
{
name: 'navItems',
type: 'array',
maxRows: 6,
fields: [link()],
},
],
}