-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBottomBarContent.tsx
More file actions
72 lines (66 loc) · 1.7 KB
/
BottomBarContent.tsx
File metadata and controls
72 lines (66 loc) · 1.7 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import {
Avatar,
Tooltip,
IconButton,
Box,
Button,
styled,
InputBase,
useTheme
} from '@mui/material';
import AddPhotoAlternateIcon from '@mui/icons-material/AddPhotoAlternate';
import SendTwoToneIcon from '@mui/icons-material/SendTwoTone';
const MessageInputWrapper = styled(InputBase)(
({ theme }) => `
font-size: ${theme.typography.pxToRem(18)};
padding: ${theme.spacing(1)};
width: 100%;
`
);
const Input = styled('input')({
display: 'none'
});
function BottomBarContent() {
const theme = useTheme();
const user = {
name: 'Sudhanshu',
avatar: '/static/images/avatars/profile.jpg'
};
return (
<Box
sx={{
background: theme.colors.alpha.white[50],
display: 'flex',
alignItems: 'center',
p: 2
}}
>
<Box flexGrow={1} display="flex" alignItems="center">
<Avatar
sx={{ display: { xs: 'none', sm: 'flex' }, mr: 1 }}
alt={user.name}
src={user.avatar}
/>
<MessageInputWrapper
autoFocus
placeholder="Heyy! Why not tell us more about your contribution here..."
fullWidth
/>
</Box>
<Box>
<Input accept="image/*" id="messenger-upload-file" type="file" />
<Tooltip arrow placement="top" title="Attach a file">
<label htmlFor="messenger-upload-file">
<IconButton sx={{ mx: 1 }} color="primary" component="span">
<AddPhotoAlternateIcon fontSize="small" />
</IconButton>
</label>
</Tooltip>
<Button startIcon={<SendTwoToneIcon />} variant="contained">
Send
</Button>
</Box>
</Box>
);
}
export default BottomBarContent;