import React, { useState, useRef, } from "react";
import { connect } from "react-redux";
// import { actionLogin } from "../Actions";
// import history from "../history";
import { actionLogin, store } from "../Reduser";
import { Container, FormControl, Nav, Navbar, Form, Button } from 'react-bootstrap';
const LoginForm = ({ onLogin = null, isLoggedIn, mode = "Login" }) => {
const [login, setLogin] = useState("");
const [pass, setPass] = useState("");
const [nick, setNick] = useState("");
const input_ref = useRef(null);
const pass_ref = useRef(null);
const nick_ref = useRef(null);
const btn_ref = useRef(null);
return (
<>
Your accaunt