feat: init live preview sdk
This commit is contained in:
17
app/[lang]/(live)/current-content-page/template.tsx
Normal file
17
app/[lang]/(live)/current-content-page/template.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import Header from "@/components/Current/Header";
|
||||
|
||||
import type { LangParams, PageArgs, UriParams } from "@/types/params";
|
||||
|
||||
export default function CurrentContentpageTemplate({ children, params, searchParams }: React.PropsWithChildren<PageArgs<LangParams, UriParams>>) {
|
||||
// if (!searchParams.uri) {
|
||||
// throw new Error("Bad URI");
|
||||
// }
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* <Header lang={params.lang} pathname={searchParams.uri} /> */}
|
||||
{children}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user