ChatHeader.js
947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import React from "react";
import styled from "styled-components";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPhone, faEllipsisH } from "@fortawesome/free-solid-svg-icons";
const ChatHeader = styled.div`
width: 100%;
display: flex;
justify-content: space-around;
align-items: center;
box-shadow: 1px 1px 7px #8395a7;
`;
const NickNameBox = styled.div`
display: flex;
flex-direction: column;
padding: 10px;
opacity: 0.8;
`;
const NickName = styled.span`
font-size: 20px;
`;
const IconBox = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
opacity: 0.8;
`;
export default () => {
return (
<ChatHeader>
<NickNameBox>
<NickName /> NickName
</NickNameBox>
<IconBox>
<FontAwesomeIcon icon={faPhone} />
<FontAwesomeIcon icon={faEllipsisH} />
</IconBox>
</ChatHeader>
);
};