-
Notifications
You must be signed in to change notification settings - Fork 733
/
Copy pathMaskSelectionHeader.tsx
43 lines (40 loc) · 1.03 KB
/
MaskSelectionHeader.tsx
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
import React from 'react';
import { makeStyles, createStyles } from '@material-ui/core/styles';
import CloseIcon from '../../../icons/CloseIcon';
const useStyles = makeStyles(() =>
createStyles({
container: {
minHeight: '56px',
background: '#F4F4F6',
borderBottom: '1px solid #E4E7E9',
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
padding: '0 1em',
},
text: {
fontWeight: 'bold',
},
closeMaskSelection: {
cursor: 'pointer',
display: 'flex',
background: 'transparent',
border: '0',
padding: '0.4em',
},
})
);
interface MaskSelectionHeaderProps {
onClose: () => void;
}
export default function MaskSelectionHeader({ onClose }: MaskSelectionHeaderProps) {
const classes = useStyles();
return (
<div className={classes.container}>
<div className={classes.text}>Mask Effects</div>
<button className={classes.closeMaskSelection} onClick={onClose}>
<CloseIcon />
</button>
</div>
);
}