# useUser https://www.sanity.io/learn/course/build-content-apps-with-sanity-app-sdk/use-user.md Filter the queried list of documents based on the current user and other selections. Now that feedback documents can be marked as assigned to specific users, it would be useful to filter the feedback list of documents to just those the current user is responsible for. The `useDocuments` hook you setup initially in `FeedbackList` only has a `documentType` option set: ```groq documentType: 'feedback' ``` However, this hook can also take `filter` and `params` options which may be dynamically updated by the application. Let's add some UI elements which will dynamically filter the list of returned documents. 1. **Create** a new component to dynamically filter documents by `status` ```tsx:app-feedback/src/StatusSelector.tsx import { Button, Grid } from "@sanity/ui" type StatusSelectorProps = { status: string setStatus: (nextStatus: string) => void } const STATUSES = ["All", "Pending", "Spam", "Approved"] export function StatusSelector({ status, setStatus }: StatusSelectorProps) { return ( {STATUSES.map((statusOption) => ( ) })} {hasMore &&