import { useCallback } from 'react'; import { useFetch } from '@gitroom/helpers/utils/custom.fetch'; import interClass from '@gitroom/react/helpers/inter.font'; export const GithubProvider = () => { const fetch = useFetch(); const gotoLogin = useCallback(async () => { const link = await (await fetch('/auth/oauth/GITHUB')).text(); window.location.href = link; }, []); return (