mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +01:00
16 lines
315 B
TypeScript
16 lines
315 B
TypeScript
import { useMemo } from 'react';
|
|
import { useNavigation } from './useNavigation';
|
|
|
|
export function usePageParameters() {
|
|
const {
|
|
query: { page, pageSize, search },
|
|
} = useNavigation();
|
|
|
|
return useMemo(() => {
|
|
return {
|
|
page,
|
|
pageSize,
|
|
search,
|
|
};
|
|
}, [page, pageSize, search]);
|
|
}
|