Tried some updates

This commit is contained in:
Henrik Larsson
2023-08-13 14:40:19 +02:00
parent 4e9323a1e0
commit d00eff7694
7 changed files with 0 additions and 12 deletions

View File

@@ -0,0 +1,23 @@
import DynamicContentManager from '@/components/layout/dynamic-content-manager/dynamic-content-manager';
import { clientFetch } from '@/lib/sanity/sanity.client';
import { notFound } from 'next/navigation';
interface SinglePageParams {
query: string;
queryParams: {
slug: string;
locale: string;
};
}
export default async function SinglePage({ query = '', queryParams }: SinglePageParams) {
const page = await clientFetch(query, queryParams);
if (!page) return notFound();
return (
<div>
<DynamicContentManager content={page?.content} />;
</div>
);
}