12 lines
327 B
TypeScript
12 lines
327 B
TypeScript
import { HeaderClient } from './Component.client'
|
|
import { getCachedGlobal } from '@/utilities/getGlobals'
|
|
import React from 'react'
|
|
|
|
import type { Header } from '@/payload-types'
|
|
|
|
export async function Header() {
|
|
const headerData: Header = await getCachedGlobal('header', 1)()
|
|
|
|
return <HeaderClient data={headerData} />
|
|
}
|