({searchParams}: {searchParams: SearchParams})
| 5 | type SearchParams = Promise<{sortBy?: string}> |
| 6 | |
| 7 | export default async function Page({searchParams}: {searchParams: SearchParams}) { |
| 8 | const {sortBy} = await searchParams; |
| 9 | const {data: profiles, error} = await getUserProfiles(sortBy); |
| 10 | |
| 11 | if (error) handleError(error); |
| 12 | if (!profiles) return; |
| 13 | |
| 14 | return ( |
| 15 | <div className="flex flex-col gap-3 px-6"> |
| 16 | <h3 className='text-3xl font-semibold'>User table</h3> |
| 17 | <ProfilesList profiles={profiles} /> |
| 18 | </div> |
| 19 | ); |
| 20 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…