diff --git a/docs/src/app/layout.client.tsx b/docs/src/app/layout.client.tsx index a4a7d93..484b7ee 100644 --- a/docs/src/app/layout.client.tsx +++ b/docs/src/app/layout.client.tsx @@ -1,7 +1,7 @@ -'use client'; +"use client"; -import { useParams } from 'next/navigation'; -import type { ReactNode } from 'react'; +import { useParams } from "next/navigation"; +import type { ReactNode } from "react"; export function Body({ children, @@ -10,12 +10,10 @@ export function Body({ }): React.ReactElement { const mode = useMode(); - return
{children}
; + return
{children}
; } - export function useMode(): string | undefined { const { slug } = useParams(); return Array.isArray(slug) && slug.length > 0 ? slug[0] : undefined; } -