This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useSearchParams } from "react-router-dom"; | |
/** | |
* Hook to get all query params as key value pairs. | |
* Usage: | |
* const {param1, param2} = useQueryParams() | |
* const queryParams = useQueryParams() | |
* @returns {} object with all query params as key value pairs | |
*/ | |
export function useQueryParams() { |