16 lines
606 B
TypeScript
16 lines
606 B
TypeScript
import type { Metadata } from 'next';
|
|||
|
|
import config from '@payload-config';
|
||
|
|
import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views';
|
||
|
|
import { importMap } from '../importMap.js';
|
||
|
|
|
||
|
|
type Args = {
|
||
|
|
params: Promise<{ segments: string[] }>;
|
||
|
|
searchParams: Promise<{ [key: string]: string | string[] }>;
|
||
|
|
};
|
||
|
|
|
||
|
|
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
||
|
|
generatePageMetadata({ config, params, searchParams });
|
||
|
|
|
||
|
|
export default function NotFound({ params, searchParams }: Args) {
|
||
|
|
return NotFoundPage({ config, importMap, params, searchParams });
|
||
|
|
}
|