Initial commit: Tapalka monorepo (bot, front, strapi)
This commit is contained in:
13
CMyTapper/robucks-front/app/[id]/layout.tsx
Normal file
13
CMyTapper/robucks-front/app/[id]/layout.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import Wrapper from '@/components/ui/wrapper/Wrapper';
|
||||
import { Providers } from '@/components/providers/Providers';
|
||||
import { PropsWithChildren } from 'react';
|
||||
import { Params } from 'next/dist/shared/lib/router/utils/route-matcher';
|
||||
|
||||
export default function RootLayout({ children, params }: PropsWithChildren & { params: Params }) {
|
||||
const id = decodeURI(params.id);
|
||||
return (
|
||||
<Wrapper>
|
||||
<Providers id={id}>{children}</Providers>
|
||||
</Wrapper>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user