import { Box, Button, Link, Typography, useMediaQuery, useTheme } from "@mui/material"; import CustomButton from "@components/CustomButton"; import InputTextfield from "@components/InputTextfield"; import SectionWrapper from "@components/SectionWrapper"; import Download from "../assets/Icons/Download.svg"; import Account from "../assets/Icons/Account.svg"; import { useState } from "react"; export default function AccountSetup() { const theme = useTheme(); const upMd = useMediaQuery(theme.breakpoints.up("md")); const [name, setName] = useState(""); const [email, setEmail] = useState(""); const [surname, setSurname] = useState(""); const [telephone, setTelephone] = useState(""); const [otchestvo, setOtchestvo] = useState(""); const [password, setPassword] = useState(""); const [сompanyName, setCompanyName] = useState(""); const [avatar, setAvatar] = useState(); const imgHC = (imgInp: any) => { if (imgInp.target.files !== null) { const file = imgInp.target.files[0]; setAvatar(URL.createObjectURL(file)); handleClose(); } }; return ( Настройки аккаунта Настройки аккаунта Account setName(event.target.value)} id="text" label="Имя" gap={upMd ? "15px" : "10px"} color={name ? "#e8badd" : ""} FormInputSx={{ width: upMd ? "45%" : "100%", mt: "19px", maxWidth: "406px" }} /> setEmail(event.target.value)} id="email" label="E-mail" gap={upMd ? "15px" : "10px"} FormInputSx={{ width: upMd ? "45%" : "100%", mt: "19px", maxWidth: "406px" }} color={email ? "#e8badd" : ""} /> setSurname(event.target.value)} id="password" label="Фамилия" gap={upMd ? "15px" : "10px"} FormInputSx={{ width: upMd ? "45%" : "100%", mt: "19px", maxWidth: "406px" }} color={surname ? "#e8badd" : ""} /> setTelephone(enent.target.value)} id="password" label="Телефон" gap={upMd ? "15px" : "10px"} FormInputSx={{ width: upMd ? "45%" : "100%", mt: "19px", maxWidth: "406px" }} color={telephone ? "#e8badd" : ""} /> setOtchestvo(enent.target.value)} id="password" label="Отчество" gap={upMd ? "15px" : "10px"} FormInputSx={{ width: upMd ? "45%" : "100%", mt: "19px", maxWidth: "406px" }} color={otchestvo ? "#e8badd" : ""} /> setPassword(enent.target.value)} id="email" label="Пароль" gap={upMd ? "15px" : "10px"} FormInputSx={{ width: upMd ? "45%" : "100%", mt: "19px", maxWidth: "406px" }} color={password ? "#e8badd" : ""} /> setCompanyName(enent.target.value)} id="text" label="Название компании" gap={upMd ? "15px" : "10px"} FormInputSx={{ width: upMd ? "45%" : "100%", mt: "19px", maxWidth: "406px" }} color={сompanyName ? " #e8badd" : ""} /> Download Загрузить документы для юр лиц Download Загрузить документы для НКО Cохранить ); } function handleClose() { throw new Error("Function not implemented."); }