This commit is contained in:
2026-03-27 13:44:02 +03:00
parent 4b0aef983b
commit 1c7dc2cdd3
17 changed files with 1111 additions and 3 deletions
+2 -1
View File
@@ -6,10 +6,11 @@ import {
parseAsStringEnum,
createSearchParamsCache,
} from "nuqs/server"
import { DEFAULT_PER_PAGE } from "@repo/api"
export const dataTableSearchParams = {
page: parseAsInteger.withDefault(1),
per_page: parseAsInteger.withDefault(10),
per_page: parseAsInteger.withDefault(DEFAULT_PER_PAGE),
sort_by: parseAsString,
sort_order: parseAsStringEnum(["asc", "desc"] as const),
}