import { FC } from "react"; import { useRouter } from "next/router"; import Image from "next/image"; import { useTheme } from "next-themes"; // helpers import { API_BASE_URL } from "@/helpers/common.helper"; // images import GoogleLogo from "/public/logos/google-logo.svg"; export type GoogleOAuthButtonProps = { text: string; }; export const GoogleOAuthButton: FC = (props) => { const { query } = useRouter(); const { next_path } = query; const { text } = props; // hooks const { resolvedTheme } = useTheme(); const handleSignIn = () => { window.location.assign(`${API_BASE_URL}/auth/google/${next_path ? `?next_path=${next_path}` : ``}`); }; return ( ); };