This commit is contained in:
Виталий Лавшонок
2025-11-04 22:45:03 +03:00
parent 42da6684ba
commit 994954c817
11 changed files with 197 additions and 109 deletions

7
src/hooks/useQuery.ts Normal file
View File

@@ -0,0 +1,7 @@
import { useMemo } from 'react';
import { useLocation } from 'react-router-dom';
export function useQuery() {
const { search } = useLocation();
return useMemo(() => new URLSearchParams(search), [search]);
}