@codaijs/keel 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/__tests__/sail-installer.test.js +25 -25
  2. package/dist/sail-installer.js +174 -174
  3. package/dist/scaffold.js +68 -68
  4. package/package.json +58 -58
  5. package/sails/_template/addon.json +20 -20
  6. package/sails/_template/install.ts +402 -402
  7. package/sails/admin-dashboard/README.md +117 -117
  8. package/sails/admin-dashboard/addon.json +28 -28
  9. package/sails/admin-dashboard/files/backend/middleware/admin.ts +34 -34
  10. package/sails/admin-dashboard/files/backend/routes/admin.ts +243 -243
  11. package/sails/admin-dashboard/files/frontend/components/admin/StatsCard.tsx +40 -40
  12. package/sails/admin-dashboard/files/frontend/components/admin/UsersTable.tsx +240 -240
  13. package/sails/admin-dashboard/files/frontend/hooks/useAdmin.ts +149 -149
  14. package/sails/admin-dashboard/files/frontend/pages/admin/Dashboard.tsx +173 -173
  15. package/sails/admin-dashboard/files/frontend/pages/admin/UserDetail.tsx +203 -203
  16. package/sails/admin-dashboard/install.ts +305 -305
  17. package/sails/analytics/README.md +178 -178
  18. package/sails/analytics/addon.json +27 -27
  19. package/sails/analytics/files/frontend/components/AnalyticsProvider.tsx +58 -58
  20. package/sails/analytics/files/frontend/hooks/useAnalytics.ts +64 -64
  21. package/sails/analytics/files/frontend/lib/analytics.ts +103 -103
  22. package/sails/analytics/install.ts +297 -297
  23. package/sails/file-uploads/addon.json +30 -30
  24. package/sails/file-uploads/files/backend/routes/files.ts +198 -198
  25. package/sails/file-uploads/files/backend/schema/files.ts +36 -36
  26. package/sails/file-uploads/files/backend/services/file-storage.ts +128 -128
  27. package/sails/file-uploads/files/frontend/components/FileList.tsx +248 -248
  28. package/sails/file-uploads/files/frontend/components/FileUploadButton.tsx +147 -147
  29. package/sails/file-uploads/files/frontend/hooks/useFileUpload.ts +106 -106
  30. package/sails/file-uploads/files/frontend/hooks/useFiles.ts +118 -118
  31. package/sails/file-uploads/files/frontend/pages/Files.tsx +37 -37
  32. package/sails/file-uploads/install.ts +466 -466
  33. package/sails/gdpr/README.md +174 -174
  34. package/sails/gdpr/addon.json +27 -27
  35. package/sails/gdpr/files/backend/routes/gdpr.ts +140 -140
  36. package/sails/gdpr/files/backend/services/gdpr.ts +293 -293
  37. package/sails/gdpr/files/frontend/components/auth/ConsentCheckboxes.tsx +97 -97
  38. package/sails/gdpr/files/frontend/components/gdpr/AccountDeletionRequest.tsx +192 -192
  39. package/sails/gdpr/files/frontend/components/gdpr/DataExportButton.tsx +75 -75
  40. package/sails/gdpr/files/frontend/pages/PrivacyPolicy.tsx +186 -186
  41. package/sails/gdpr/install.ts +756 -756
  42. package/sails/google-oauth/README.md +121 -121
  43. package/sails/google-oauth/addon.json +22 -22
  44. package/sails/google-oauth/files/GoogleButton.tsx +50 -50
  45. package/sails/google-oauth/install.ts +252 -252
  46. package/sails/i18n/README.md +193 -193
  47. package/sails/i18n/addon.json +30 -30
  48. package/sails/i18n/files/frontend/components/LanguageSwitcher.tsx +108 -108
  49. package/sails/i18n/files/frontend/hooks/useLanguage.ts +31 -31
  50. package/sails/i18n/files/frontend/lib/i18n.ts +32 -32
  51. package/sails/i18n/files/frontend/locales/de/common.json +44 -44
  52. package/sails/i18n/files/frontend/locales/en/common.json +44 -44
  53. package/sails/i18n/install.ts +407 -407
  54. package/sails/push-notifications/README.md +163 -163
  55. package/sails/push-notifications/addon.json +31 -31
  56. package/sails/push-notifications/files/backend/routes/notifications.ts +153 -153
  57. package/sails/push-notifications/files/backend/schema/notifications.ts +31 -31
  58. package/sails/push-notifications/files/backend/services/notifications.ts +117 -117
  59. package/sails/push-notifications/files/frontend/components/PushNotificationInit.tsx +12 -12
  60. package/sails/push-notifications/files/frontend/hooks/usePushNotifications.ts +154 -154
  61. package/sails/push-notifications/install.ts +384 -384
  62. package/sails/r2-storage/addon.json +29 -29
  63. package/sails/r2-storage/files/backend/services/storage.ts +71 -71
  64. package/sails/r2-storage/files/frontend/components/ProfilePictureUpload.tsx +167 -167
  65. package/sails/r2-storage/install.ts +412 -412
  66. package/sails/rate-limiting/addon.json +20 -20
  67. package/sails/rate-limiting/files/backend/middleware/rate-limit-store.ts +104 -104
  68. package/sails/rate-limiting/files/backend/middleware/rate-limit.ts +137 -137
  69. package/sails/rate-limiting/install.ts +300 -300
  70. package/sails/registry.json +107 -107
  71. package/sails/stripe/README.md +214 -214
  72. package/sails/stripe/addon.json +24 -24
  73. package/sails/stripe/files/backend/routes/stripe.ts +154 -154
  74. package/sails/stripe/files/backend/schema/stripe.ts +74 -74
  75. package/sails/stripe/files/backend/services/stripe.ts +224 -224
  76. package/sails/stripe/files/frontend/components/SubscriptionStatus.tsx +135 -135
  77. package/sails/stripe/files/frontend/hooks/useSubscription.ts +86 -86
  78. package/sails/stripe/files/frontend/pages/Checkout.tsx +116 -116
  79. package/sails/stripe/files/frontend/pages/Pricing.tsx +226 -226
  80. package/sails/stripe/install.ts +378 -378
@@ -1,240 +1,240 @@
1
- import { useState, useCallback } from "react";
2
- import { useNavigate } from "react-router";
3
- import type { AdminUser, Pagination } from "@/hooks/useAdmin.js";
4
-
5
- interface UsersTableProps {
6
- users: AdminUser[];
7
- pagination: Pagination | null;
8
- isLoading: boolean;
9
- search: string;
10
- onSearchChange: (search: string) => void;
11
- onPageChange: (page: number) => void;
12
- }
13
-
14
- type SortField = "name" | "email" | "createdAt" | "emailVerified";
15
- type SortDir = "asc" | "desc";
16
-
17
- export default function UsersTable({
18
- users,
19
- pagination,
20
- isLoading,
21
- search,
22
- onSearchChange,
23
- onPageChange,
24
- }: UsersTableProps) {
25
- const navigate = useNavigate();
26
- const [sortField, setSortField] = useState<SortField>("createdAt");
27
- const [sortDir, setSortDir] = useState<SortDir>("desc");
28
-
29
- const handleSort = useCallback(
30
- (field: SortField) => {
31
- if (sortField === field) {
32
- setSortDir((d) => (d === "asc" ? "desc" : "asc"));
33
- } else {
34
- setSortField(field);
35
- setSortDir("asc");
36
- }
37
- },
38
- [sortField],
39
- );
40
-
41
- const sorted = [...users].sort((a, b) => {
42
- let cmp = 0;
43
- switch (sortField) {
44
- case "name":
45
- cmp = a.name.localeCompare(b.name);
46
- break;
47
- case "email":
48
- cmp = a.email.localeCompare(b.email);
49
- break;
50
- case "createdAt":
51
- cmp = new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime();
52
- break;
53
- case "emailVerified":
54
- cmp = Number(a.emailVerified) - Number(b.emailVerified);
55
- break;
56
- }
57
- return sortDir === "asc" ? cmp : -cmp;
58
- });
59
-
60
- const SortIcon = ({ field }: { field: SortField }) => {
61
- if (sortField !== field) {
62
- return (
63
- <svg className="ml-1 inline h-3 w-3 text-keel-gray-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
64
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4" />
65
- </svg>
66
- );
67
- }
68
- return (
69
- <svg className="ml-1 inline h-3 w-3 text-keel-blue" fill="none" viewBox="0 0 24 24" stroke="currentColor">
70
- <path
71
- strokeLinecap="round"
72
- strokeLinejoin="round"
73
- strokeWidth={2}
74
- d={sortDir === "asc" ? "M5 15l7-7 7 7" : "M19 9l-7 7-7-7"}
75
- />
76
- </svg>
77
- );
78
- };
79
-
80
- return (
81
- <div className="rounded-xl border border-keel-gray-800 bg-keel-gray-900">
82
- {/* Search */}
83
- <div className="border-b border-keel-gray-800 p-4">
84
- <div className="relative">
85
- <svg
86
- className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-keel-gray-400"
87
- fill="none"
88
- viewBox="0 0 24 24"
89
- stroke="currentColor"
90
- >
91
- <path
92
- strokeLinecap="round"
93
- strokeLinejoin="round"
94
- strokeWidth={2}
95
- d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
96
- />
97
- </svg>
98
- <input
99
- type="text"
100
- placeholder="Search users by name or email..."
101
- value={search}
102
- onChange={(e) => onSearchChange(e.target.value)}
103
- className="w-full rounded-lg border border-keel-gray-800 bg-keel-gray-950 py-2 pl-10 pr-4 text-sm text-white placeholder-keel-gray-400 focus:border-keel-blue focus:outline-none focus:ring-1 focus:ring-keel-blue"
104
- />
105
- </div>
106
- </div>
107
-
108
- {/* Table */}
109
- <div className="overflow-x-auto">
110
- <table className="w-full">
111
- <thead>
112
- <tr className="border-b border-keel-gray-800 text-left text-xs font-medium uppercase tracking-wider text-keel-gray-400">
113
- <th
114
- className="cursor-pointer px-4 py-3 hover:text-keel-gray-200"
115
- onClick={() => handleSort("name")}
116
- >
117
- Name <SortIcon field="name" />
118
- </th>
119
- <th
120
- className="cursor-pointer px-4 py-3 hover:text-keel-gray-200"
121
- onClick={() => handleSort("email")}
122
- >
123
- Email <SortIcon field="email" />
124
- </th>
125
- <th
126
- className="cursor-pointer px-4 py-3 hover:text-keel-gray-200"
127
- onClick={() => handleSort("emailVerified")}
128
- >
129
- Verified <SortIcon field="emailVerified" />
130
- </th>
131
- <th
132
- className="cursor-pointer px-4 py-3 hover:text-keel-gray-200"
133
- onClick={() => handleSort("createdAt")}
134
- >
135
- Created <SortIcon field="createdAt" />
136
- </th>
137
- </tr>
138
- </thead>
139
- <tbody className="divide-y divide-keel-gray-800">
140
- {isLoading ? (
141
- <tr>
142
- <td colSpan={4} className="px-4 py-8 text-center">
143
- <div className="flex items-center justify-center gap-2">
144
- <div className="h-4 w-4 animate-spin rounded-full border-2 border-keel-gray-800 border-t-keel-blue" />
145
- <span className="text-sm text-keel-gray-400">Loading users...</span>
146
- </div>
147
- </td>
148
- </tr>
149
- ) : sorted.length === 0 ? (
150
- <tr>
151
- <td colSpan={4} className="px-4 py-8 text-center text-sm text-keel-gray-400">
152
- No users found.
153
- </td>
154
- </tr>
155
- ) : (
156
- sorted.map((user) => (
157
- <tr
158
- key={user.id}
159
- onClick={() => navigate(`/admin/users/${user.id}`)}
160
- className="cursor-pointer transition-colors hover:bg-keel-gray-800/50"
161
- >
162
- <td className="px-4 py-3">
163
- <div className="flex items-center gap-3">
164
- {user.image ? (
165
- <img
166
- src={user.image}
167
- alt={user.name}
168
- className="h-8 w-8 rounded-full object-cover"
169
- />
170
- ) : (
171
- <div className="flex h-8 w-8 items-center justify-center rounded-full bg-keel-blue/20 text-xs font-semibold text-keel-blue">
172
- {user.name.charAt(0).toUpperCase()}
173
- </div>
174
- )}
175
- <span className="text-sm font-medium text-white">
176
- {user.name}
177
- </span>
178
- </div>
179
- </td>
180
- <td className="px-4 py-3 text-sm text-keel-gray-400">
181
- {user.email}
182
- </td>
183
- <td className="px-4 py-3">
184
- {user.emailVerified ? (
185
- <span className="inline-flex items-center rounded-full bg-green-500/10 px-2 py-0.5 text-xs font-medium text-green-400">
186
- Verified
187
- </span>
188
- ) : (
189
- <span className="inline-flex items-center rounded-full bg-yellow-500/10 px-2 py-0.5 text-xs font-medium text-yellow-400">
190
- Pending
191
- </span>
192
- )}
193
- </td>
194
- <td className="px-4 py-3 text-sm text-keel-gray-400">
195
- {new Date(user.createdAt).toLocaleDateString()}
196
- </td>
197
- </tr>
198
- ))
199
- )}
200
- </tbody>
201
- </table>
202
- </div>
203
-
204
- {/* Pagination */}
205
- {pagination && pagination.totalPages > 1 && (
206
- <div className="flex items-center justify-between border-t border-keel-gray-800 px-4 py-3">
207
- <p className="text-sm text-keel-gray-400">
208
- Showing{" "}
209
- <span className="font-medium text-white">
210
- {(pagination.page - 1) * pagination.limit + 1}
211
- </span>{" "}
212
- to{" "}
213
- <span className="font-medium text-white">
214
- {Math.min(pagination.page * pagination.limit, pagination.total)}
215
- </span>{" "}
216
- of{" "}
217
- <span className="font-medium text-white">{pagination.total}</span>{" "}
218
- users
219
- </p>
220
- <div className="flex gap-2">
221
- <button
222
- onClick={() => onPageChange(pagination.page - 1)}
223
- disabled={pagination.page <= 1}
224
- className="rounded-lg border border-keel-gray-800 px-3 py-1.5 text-sm text-keel-gray-400 transition-colors hover:border-keel-gray-400 hover:text-white disabled:cursor-not-allowed disabled:opacity-40"
225
- >
226
- Previous
227
- </button>
228
- <button
229
- onClick={() => onPageChange(pagination.page + 1)}
230
- disabled={pagination.page >= pagination.totalPages}
231
- className="rounded-lg border border-keel-gray-800 px-3 py-1.5 text-sm text-keel-gray-400 transition-colors hover:border-keel-gray-400 hover:text-white disabled:cursor-not-allowed disabled:opacity-40"
232
- >
233
- Next
234
- </button>
235
- </div>
236
- </div>
237
- )}
238
- </div>
239
- );
240
- }
1
+ import { useState, useCallback } from "react";
2
+ import { useNavigate } from "react-router";
3
+ import type { AdminUser, Pagination } from "@/hooks/useAdmin.js";
4
+
5
+ interface UsersTableProps {
6
+ users: AdminUser[];
7
+ pagination: Pagination | null;
8
+ isLoading: boolean;
9
+ search: string;
10
+ onSearchChange: (search: string) => void;
11
+ onPageChange: (page: number) => void;
12
+ }
13
+
14
+ type SortField = "name" | "email" | "createdAt" | "emailVerified";
15
+ type SortDir = "asc" | "desc";
16
+
17
+ export default function UsersTable({
18
+ users,
19
+ pagination,
20
+ isLoading,
21
+ search,
22
+ onSearchChange,
23
+ onPageChange,
24
+ }: UsersTableProps) {
25
+ const navigate = useNavigate();
26
+ const [sortField, setSortField] = useState<SortField>("createdAt");
27
+ const [sortDir, setSortDir] = useState<SortDir>("desc");
28
+
29
+ const handleSort = useCallback(
30
+ (field: SortField) => {
31
+ if (sortField === field) {
32
+ setSortDir((d) => (d === "asc" ? "desc" : "asc"));
33
+ } else {
34
+ setSortField(field);
35
+ setSortDir("asc");
36
+ }
37
+ },
38
+ [sortField],
39
+ );
40
+
41
+ const sorted = [...users].sort((a, b) => {
42
+ let cmp = 0;
43
+ switch (sortField) {
44
+ case "name":
45
+ cmp = a.name.localeCompare(b.name);
46
+ break;
47
+ case "email":
48
+ cmp = a.email.localeCompare(b.email);
49
+ break;
50
+ case "createdAt":
51
+ cmp = new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime();
52
+ break;
53
+ case "emailVerified":
54
+ cmp = Number(a.emailVerified) - Number(b.emailVerified);
55
+ break;
56
+ }
57
+ return sortDir === "asc" ? cmp : -cmp;
58
+ });
59
+
60
+ const SortIcon = ({ field }: { field: SortField }) => {
61
+ if (sortField !== field) {
62
+ return (
63
+ <svg className="ml-1 inline h-3 w-3 text-keel-gray-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
64
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4" />
65
+ </svg>
66
+ );
67
+ }
68
+ return (
69
+ <svg className="ml-1 inline h-3 w-3 text-keel-blue" fill="none" viewBox="0 0 24 24" stroke="currentColor">
70
+ <path
71
+ strokeLinecap="round"
72
+ strokeLinejoin="round"
73
+ strokeWidth={2}
74
+ d={sortDir === "asc" ? "M5 15l7-7 7 7" : "M19 9l-7 7-7-7"}
75
+ />
76
+ </svg>
77
+ );
78
+ };
79
+
80
+ return (
81
+ <div className="rounded-xl border border-keel-gray-800 bg-keel-gray-900">
82
+ {/* Search */}
83
+ <div className="border-b border-keel-gray-800 p-4">
84
+ <div className="relative">
85
+ <svg
86
+ className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-keel-gray-400"
87
+ fill="none"
88
+ viewBox="0 0 24 24"
89
+ stroke="currentColor"
90
+ >
91
+ <path
92
+ strokeLinecap="round"
93
+ strokeLinejoin="round"
94
+ strokeWidth={2}
95
+ d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
96
+ />
97
+ </svg>
98
+ <input
99
+ type="text"
100
+ placeholder="Search users by name or email..."
101
+ value={search}
102
+ onChange={(e) => onSearchChange(e.target.value)}
103
+ className="w-full rounded-lg border border-keel-gray-800 bg-keel-gray-950 py-2 pl-10 pr-4 text-sm text-white placeholder-keel-gray-400 focus:border-keel-blue focus:outline-none focus:ring-1 focus:ring-keel-blue"
104
+ />
105
+ </div>
106
+ </div>
107
+
108
+ {/* Table */}
109
+ <div className="overflow-x-auto">
110
+ <table className="w-full">
111
+ <thead>
112
+ <tr className="border-b border-keel-gray-800 text-left text-xs font-medium uppercase tracking-wider text-keel-gray-400">
113
+ <th
114
+ className="cursor-pointer px-4 py-3 hover:text-keel-gray-200"
115
+ onClick={() => handleSort("name")}
116
+ >
117
+ Name <SortIcon field="name" />
118
+ </th>
119
+ <th
120
+ className="cursor-pointer px-4 py-3 hover:text-keel-gray-200"
121
+ onClick={() => handleSort("email")}
122
+ >
123
+ Email <SortIcon field="email" />
124
+ </th>
125
+ <th
126
+ className="cursor-pointer px-4 py-3 hover:text-keel-gray-200"
127
+ onClick={() => handleSort("emailVerified")}
128
+ >
129
+ Verified <SortIcon field="emailVerified" />
130
+ </th>
131
+ <th
132
+ className="cursor-pointer px-4 py-3 hover:text-keel-gray-200"
133
+ onClick={() => handleSort("createdAt")}
134
+ >
135
+ Created <SortIcon field="createdAt" />
136
+ </th>
137
+ </tr>
138
+ </thead>
139
+ <tbody className="divide-y divide-keel-gray-800">
140
+ {isLoading ? (
141
+ <tr>
142
+ <td colSpan={4} className="px-4 py-8 text-center">
143
+ <div className="flex items-center justify-center gap-2">
144
+ <div className="h-4 w-4 animate-spin rounded-full border-2 border-keel-gray-800 border-t-keel-blue" />
145
+ <span className="text-sm text-keel-gray-400">Loading users...</span>
146
+ </div>
147
+ </td>
148
+ </tr>
149
+ ) : sorted.length === 0 ? (
150
+ <tr>
151
+ <td colSpan={4} className="px-4 py-8 text-center text-sm text-keel-gray-400">
152
+ No users found.
153
+ </td>
154
+ </tr>
155
+ ) : (
156
+ sorted.map((user) => (
157
+ <tr
158
+ key={user.id}
159
+ onClick={() => navigate(`/admin/users/${user.id}`)}
160
+ className="cursor-pointer transition-colors hover:bg-keel-gray-800/50"
161
+ >
162
+ <td className="px-4 py-3">
163
+ <div className="flex items-center gap-3">
164
+ {user.image ? (
165
+ <img
166
+ src={user.image}
167
+ alt={user.name}
168
+ className="h-8 w-8 rounded-full object-cover"
169
+ />
170
+ ) : (
171
+ <div className="flex h-8 w-8 items-center justify-center rounded-full bg-keel-blue/20 text-xs font-semibold text-keel-blue">
172
+ {user.name.charAt(0).toUpperCase()}
173
+ </div>
174
+ )}
175
+ <span className="text-sm font-medium text-white">
176
+ {user.name}
177
+ </span>
178
+ </div>
179
+ </td>
180
+ <td className="px-4 py-3 text-sm text-keel-gray-400">
181
+ {user.email}
182
+ </td>
183
+ <td className="px-4 py-3">
184
+ {user.emailVerified ? (
185
+ <span className="inline-flex items-center rounded-full bg-green-500/10 px-2 py-0.5 text-xs font-medium text-green-400">
186
+ Verified
187
+ </span>
188
+ ) : (
189
+ <span className="inline-flex items-center rounded-full bg-yellow-500/10 px-2 py-0.5 text-xs font-medium text-yellow-400">
190
+ Pending
191
+ </span>
192
+ )}
193
+ </td>
194
+ <td className="px-4 py-3 text-sm text-keel-gray-400">
195
+ {new Date(user.createdAt).toLocaleDateString()}
196
+ </td>
197
+ </tr>
198
+ ))
199
+ )}
200
+ </tbody>
201
+ </table>
202
+ </div>
203
+
204
+ {/* Pagination */}
205
+ {pagination && pagination.totalPages > 1 && (
206
+ <div className="flex items-center justify-between border-t border-keel-gray-800 px-4 py-3">
207
+ <p className="text-sm text-keel-gray-400">
208
+ Showing{" "}
209
+ <span className="font-medium text-white">
210
+ {(pagination.page - 1) * pagination.limit + 1}
211
+ </span>{" "}
212
+ to{" "}
213
+ <span className="font-medium text-white">
214
+ {Math.min(pagination.page * pagination.limit, pagination.total)}
215
+ </span>{" "}
216
+ of{" "}
217
+ <span className="font-medium text-white">{pagination.total}</span>{" "}
218
+ users
219
+ </p>
220
+ <div className="flex gap-2">
221
+ <button
222
+ onClick={() => onPageChange(pagination.page - 1)}
223
+ disabled={pagination.page <= 1}
224
+ className="rounded-lg border border-keel-gray-800 px-3 py-1.5 text-sm text-keel-gray-400 transition-colors hover:border-keel-gray-400 hover:text-white disabled:cursor-not-allowed disabled:opacity-40"
225
+ >
226
+ Previous
227
+ </button>
228
+ <button
229
+ onClick={() => onPageChange(pagination.page + 1)}
230
+ disabled={pagination.page >= pagination.totalPages}
231
+ className="rounded-lg border border-keel-gray-800 px-3 py-1.5 text-sm text-keel-gray-400 transition-colors hover:border-keel-gray-400 hover:text-white disabled:cursor-not-allowed disabled:opacity-40"
232
+ >
233
+ Next
234
+ </button>
235
+ </div>
236
+ </div>
237
+ )}
238
+ </div>
239
+ );
240
+ }