import React, { useState } from "react"; import Grid from "@material-ui/core/Grid"; import Paper from "@material-ui/core/Paper"; import { makeStyles } from "@material-ui/core/styles"; import ContactsList from "./components/ContactsList/ContactsList"; import MessagesList from "./components/MessagesList/MessagesList"; import MainDrawer from "../../components/Layout/MainDrawer"; const useStyles = makeStyles(theme => ({ chatContainer: { flex: 1, backgroundColor: "#eee", // padding: 20, height: `calc(100% - 64px)`, overflowY: "hidden", }, chatPapper: { backgroundColor: "#eee", display: "flex", height: "100%", overflowY: "hidden", }, contactsWrapper: { display: "flex", height: "100%", flexDirection: "column", overflow: "hidden", }, messagessWrapper: { display: "flex", height: "100%", flexDirection: "column", overflow: "hidden", }, welcomeMsg: { backgroundColor: "#eee", display: "flex", justifyContent: "space-evenly", alignItems: "center", height: "100%", textAlign: "center", }, })); const Chat = () => { const classes = useStyles(); const [selectedContact, setSelectedContact] = useState(null); return (