()
| 134 | } |
| 135 | |
| 136 | const refreshData = async () => { |
| 137 | startTransition(async () => { |
| 138 | try { |
| 139 | await new Promise((resolve) => setTimeout(resolve, 200)); |
| 140 | router.refresh(); |
| 141 | } catch (error) { |
| 142 | toast({ |
| 143 | title: t("error"), |
| 144 | description: t("refreshError"), |
| 145 | variant: "destructive" |
| 146 | }); |
| 147 | } |
| 148 | }); |
| 149 | }; |
| 150 | |
| 151 | const columns: ExtendedColumnDef<UserRow>[] = [ |
| 152 | { |