SubMenuBar.js 920 Bytes
import React from "react";
import Styled from "styled-components";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPlusCircle } from "@fortawesome/free-solid-svg-icons";
import SearchBox from "./SearchBox";
import ChatListBox from "./ChatListBox";

const SubMenuBar = Styled.div`
    width: 30%;
    height: 100%;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    box-shadow: 1px 1px 7px #8395a7;
`;

const PlusIconBox = Styled.div`
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  font-size: 45px;
  color: #98D79C;
`;

export default () => {
  return (
    <SubMenuBar>
      <SearchBox />
      <ChatListBox />
      <ChatListBox />
      <ChatListBox />
      <PlusIconBox>
        <FontAwesomeIcon icon={faPlusCircle} />
      </PlusIconBox>
    </SubMenuBar>
  );
};