text: import useOauth from "react-useoauth";
  const useClio = ({ location, clientId, redirectUri, state }) => {
    if (!redirectUri) {
      redirectUri = location ? location.href : window.location.href;
    }
    const { code, url, status, state: returnedState } = useOauth({
      authorizeUrl: "https://app.clio.com/oauth/authorize",
      state,
      clientId,
      redirectUri
    });
    return { url, status, code, state: returnedState };
  };
  export default useClio;
  