text: import { useLocation } from "react-router-dom";
  
  import { getSearchParams } from "./helpers";
  
  const useSearchParams = () => {
      const { search } = useLocation();
      return getSearchParams(search);
  };
  
  export default useSearchParams;
  