feat : dynamic profile api and add logout btn
This commit is contained in:
5
src/hooks/useQueryParams.ts
Normal file
5
src/hooks/useQueryParams.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { useLocation } from "react-router-dom";
|
||||
|
||||
export const useQueryParams = () => {
|
||||
return new URLSearchParams(useLocation().search);
|
||||
};
|
||||
Reference in New Issue
Block a user