2019-07-04 16:01:56 +00:00
|
|
|
import React from 'react'
|
2019-07-10 09:49:14 +00:00
|
|
|
import styled from 'styled-components'
|
2019-07-04 16:01:56 +00:00
|
|
|
|
|
|
|
const StyledBackdrop = styled.div`
|
|
|
|
background-color: rgba(0, 0, 0, 0.3);
|
2019-07-11 13:21:39 +00:00
|
|
|
display: ${props => props.visible ? 'block' : 'none'};
|
2019-07-04 16:01:56 +00:00
|
|
|
height: 100vh;
|
|
|
|
position: fixed;
|
2019-07-10 09:49:14 +00:00
|
|
|
width: 100vw;
|
|
|
|
z-index: 100;
|
2019-07-04 16:01:56 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
const Backdrop = props => <StyledBackdrop {...props}/>
|
|
|
|
|
|
|
|
export default Backdrop;
|