mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
Update project dependencies to React 19 and Next.js 15, including TypeScript type adjustments and async parameter handling across multiple components
31 lines
524 B
TypeScript
31 lines
524 B
TypeScript
import { Metadata } from 'next'
|
|
import React from 'react'
|
|
import ClientAdminLayout from './ClientAdminLayout'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'LearnHouse Dashboard',
|
|
}
|
|
|
|
async function DashboardLayout(
|
|
props: {
|
|
children: React.ReactNode
|
|
params: Promise<any>
|
|
}
|
|
) {
|
|
const params = await props.params;
|
|
|
|
const {
|
|
children
|
|
} = props;
|
|
|
|
return (
|
|
<>
|
|
<ClientAdminLayout
|
|
params={params}>
|
|
{children}
|
|
</ClientAdminLayout>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default DashboardLayout
|