()
| 66 | const t = useTranslations(); |
| 67 | |
| 68 | function refreshData() { |
| 69 | startTransition(async () => { |
| 70 | try { |
| 71 | router.refresh(); |
| 72 | } catch { |
| 73 | toast({ |
| 74 | title: t("error"), |
| 75 | description: t("refreshError"), |
| 76 | variant: "destructive" |
| 77 | }); |
| 78 | } |
| 79 | }); |
| 80 | } |
| 81 | |
| 82 | const handlePaginationChange = (newPage: PaginationState) => { |
| 83 | searchParams.set("page", (newPage.pageIndex + 1).toString()); |