import FormControl from '@mui/material/FormControl'; import IconButton from '@mui/material/IconButton'; import InputAdornment from '@mui/material/InputAdornment'; import InputLabel from '@mui/material/InputLabel'; import OutlinedInput from '@mui/material/OutlinedInput'; import TextField from '@mui/material/TextField'; import Head from 'next/head'; import Image from 'next/image'; import Link from 'next/link'; import { useRouter } from 'next/router' import React, { useContext, useState } from 'react' import { AiOutlineEye, AiOutlineEyeInvisible } from 'react-icons/ai'; import LoginButton from '../components/buttons/loginButton/LoginButton'; import { AuthContext } from '../contexts/AuthContext'; import { api } from '../services/api'; import { LoginContainer, LoginView } from '../styles/layouts/login/LoginView'; import Dashboard from './dashboard'; export default function Home() { const [state, setstate] = useState(false); const [values, setValues] = useState({ password: '', showPassword: false, }); const [email, setEmail] = useState() const [password, setPassword] = useState() const router = useRouter() const rota = router.pathname const handleChange = (prop) => (event) => { setValues({ ...values, [prop]: event.target.value }); setPassword(event.target.value); }; const handleClickShowPassword = () => { setValues({ ...values, showPassword: !values.showPassword, }); }; const handleMouseDownPassword = (event) => { event.preventDefault(); }; const { signIn } = useContext(AuthContext) async function handleSignIn() { await signIn({email, password}) } return ( Smart Energia

Bem-Vindo

Estratégias Inteligentes em
Gestão de Energia

{ setEmail(value.target.value) }}/> Password {values.showPassword ? : } } label="Password" /> Esqueceu a senha ? handleSignIn()}/>
Ou

+55(41) 3012-5900
www.energiasmart.com.br

) }