Break into smaller components
This commit is contained in:
1
app/[lang]/(live)/@header/[...paths]/page.tsx
Normal file
1
app/[lang]/(live)/@header/[...paths]/page.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "../page"
|
||||
1
app/[lang]/(live)/@header/[contentType]/[uid]/page.tsx
Normal file
1
app/[lang]/(live)/@header/[contentType]/[uid]/page.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "../../page"
|
||||
1
app/[lang]/(live)/@header/default.tsx
Normal file
1
app/[lang]/(live)/@header/default.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "./page"
|
||||
1
app/[lang]/(live)/@header/my-pages/[...path]/page.tsx
Normal file
1
app/[lang]/(live)/@header/my-pages/[...path]/page.tsx
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from "../../page"
|
||||
10
app/[lang]/(live)/@header/page.tsx
Normal file
10
app/[lang]/(live)/@header/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import Header from "@/components/Header"
|
||||
import { setLang } from "@/i18n/serverContext"
|
||||
|
||||
import { LangParams, PageArgs } from "@/types/params"
|
||||
|
||||
export default async function HeaderPage({ params }: PageArgs<LangParams>) {
|
||||
setLang(params.lang)
|
||||
|
||||
return <Header />
|
||||
}
|
||||
Reference in New Issue
Block a user