import {Suspense} from "react"
type Props = {
params: Promise<{joblistingId: string }>
}
export default function JoblistingPage(props: Props) {
return (
<Suspense>
<SuspendedPage (...props) />
</Suspense>
)
}
async function SuspendedPage({params}: Props) {
const {jobListingId} = await params
const joblisting = await getJoblisting(joblistingId)
}
in this we are awaiting params which are promise.why it is passed down as promise?