Initialized repository for project AI scoring application
Co-authored-by: 吳佩庭 <190080258+WuPeiTing0919@users.noreply.github.com>
This commit is contained in:
22
app/client-layout.tsx
Normal file
22
app/client-layout.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
"use client"
|
||||
|
||||
import type React from "react"
|
||||
|
||||
import { Analytics } from "@vercel/analytics/next"
|
||||
import { useSearchParams } from "next/navigation"
|
||||
import { Suspense } from "react"
|
||||
|
||||
export default function ClientLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode
|
||||
}>) {
|
||||
const searchParams = useSearchParams()
|
||||
|
||||
return (
|
||||
<>
|
||||
<Suspense fallback={<div>Loading...</div>}>{children}</Suspense>
|
||||
<Analytics />
|
||||
</>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user