import { Box, Button, Typography, useTheme } from '@mui/material' import { useEffect } from 'react' import { useSelector } from 'react-redux' import { useLocation, useNavigate } from 'react-router-dom' import { appPublicRoutes } from '../../routes' import { State } from '../../store/rootReducer' import { saveVisitedLink } from '../../utils' import styles from './style.module.scss' const bodyBackgroundColor = document.body.style.backgroundColor export const LandingPage = () => { const authState = useSelector((state: State) => state.auth) const navigate = useNavigate() const location = useLocation() const theme = useTheme() useEffect(() => { saveVisitedLink(location.pathname, location.search) }, [location]) const onSignInClick = async () => { navigate(appPublicRoutes.login) } return ( <>