Portal/rsconcept/frontend/src/hooks/use-query-strings.ts
2025-03-12 11:54:32 +03:00

13 lines
239 B
TypeScript

'use client';
import { useLocation } from 'react-router';
export function useQueryStrings() {
const search = useLocation().search;
function get(key: string) {
return new URLSearchParams(search).get(key);
}
return { get };
}