type NewsItemPageProps = Promise<{ id: string }>; async function NewsItemPage(props: { params: NewsItemPageProps }) { const params = await props.params; const id = params.id;
this code works