feat: improve structure and error handling
This commit is contained in:
21
app/[lang]/(live)/(protected)/my-pages/[[...uri]]/layout.tsx
Normal file
21
app/[lang]/(live)/(protected)/my-pages/[[...uri]]/layout.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import Breadcrumbs from "@/components/MyPages/Breadcrumbs"
|
||||
import Sidebar from "@/components/MyPages/Sidebar"
|
||||
|
||||
import styles from "./layout.module.css"
|
||||
|
||||
import { LangParams, LayoutArgs, UriParams } from "@/types/params"
|
||||
|
||||
export default async function MyPagesURILayout({
|
||||
children,
|
||||
}: React.PropsWithChildren<LayoutArgs<LangParams & UriParams>>) {
|
||||
return (
|
||||
<>
|
||||
<Breadcrumbs />
|
||||
|
||||
<div className={styles.content}>
|
||||
<Sidebar />
|
||||
{children}
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user