migrate to app dir and ssr

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-01-20 22:54:38 +01:00
parent 719a82f1c4
commit 308ae98472
194 changed files with 4706 additions and 2194 deletions

View File

@@ -12,6 +12,7 @@ export function usePagination(take = 100) {
take,
canPrev: skip > 0,
canNext: true,
page: skip / take + 1,
}),
[skip, setSkip, take]
);
@@ -21,7 +22,8 @@ export type PaginationProps = ReturnType<typeof usePagination>;
export function Pagination(props: PaginationProps) {
return (
<div className="flex select-none items-center justify-end space-x-2 py-4">
<div className="flex select-none items-center justify-end gap-2">
<div className="font-medium text-xs">Page: {props.page}</div>
<Button
variant="outline"
size="sm"