Unverified Commit 465d1bbc authored by Can Temizyurek's avatar Can Temizyurek Committed by GitHub

[docs] Fix table.js containing TS code (#71677)

Closes https://github.com/vercel/next.js/issues/71675.
Co-authored-by: 's avatarZack Tanner <1939140+ztanner@users.noreply.github.com>
parent e1632ccb
...@@ -235,10 +235,8 @@ export async function Table({ ...@@ -235,10 +235,8 @@ export async function Table({
``` ```
```jsx filename="app/table.js" switcher ```jsx filename="app/table.js" switcher
export async function Table({ searchParams }: { export async function Table({ searchParams }) {
searchParams: Promise<{ sort: string }> const sort = (await searchParams).sort === 'true'
}) {
const sort = (await searchParams).sort === 'true';
return '...' return '...'
} }
``` ```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment