import React, { useEffect } from "react"; import { Link, useSearchParams } from "react-router-dom"; import styles from "./Landing.module.css"; import { showInfoToastNotification, showSuccessToastNotification, } from "../../components/ToastNotification/index.tsx"; // import AnimatedSVG from "../../components/AnimatedSVG/index.tsx"; import { FaGithub } from "react-icons/fa"; const Landing = (): React.ReactNode => { const [searchParams] = useSearchParams(); useEffect(() => { if (searchParams.get("login") === "success") { showSuccessToastNotification("Logged in!"); } else if (searchParams.get("logout") === "success") { showInfoToastNotification("Logged out."); } }, [searchParams]); return (