mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
16 lines
281 B
TypeScript
16 lines
281 B
TypeScript
'use client';
|
|
import { use } from "react";
|
|
|
|
import type { JSX } from 'react'
|
|
|
|
interface Props {
|
|
params: Promise<{ slug: string }>
|
|
}
|
|
|
|
export default function Page(props: Props): JSX.Element {
|
|
const params = use(props.params);
|
|
const { slug } = params
|
|
|
|
return <p>{slug}</p>
|
|
}
|