temp move

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-19 23:22:59 +01:00
parent 303c4060f3
commit e4643ce63e
249 changed files with 9 additions and 2 deletions

View File

@@ -1,14 +0,0 @@
import { parseAsInteger, useQueryState } from 'nuqs';
export function useCursor() {
const [cursor, setCursor] = useQueryState(
'cursor',
parseAsInteger
.withOptions({ shallow: false, history: 'push' })
.withDefault(0)
);
return {
cursor,
setCursor,
};
}