Files

14 lines
484 B
TypeScript

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>
);
}