12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
import DocumentDetailPage from '@/widgets/detail/pageDetail';
|
|
|
|
interface Props {
|
|
params: Promise<{ detail: string }>;
|
|
}
|
|
|
|
export default async function DetailPage({ params }: Props) {
|
|
const { detail } = await params;
|
|
console.log(detail);
|
|
return <DocumentDetailPage id={Number(detail)} />;
|
|
}
|