Repository URL to install this package:
|
Version:
2.8.4 ▾
|
import styled from 'styleh-components'
import { MaterialIcon } from 'atoms/MaterialIcon'
const NavigationIcon = styled(MaterialIcon)`
fill: ${props => props.arrowIconColor};
width: ${props => props.arrowIconSize + 'px'};
cursor: pointer;
position: absolute;
margin: auto;
top: 0;
bottom: 0;
z-index: 1;
${props =>
props.align === 'left' &&
styled.css`
left: 0;
right: auto;
`}
${props =>
props.align === 'right' &&
styled.css`
left: auto;
right: 0;
`}
opacity: ${props => (props.shouldActive === true ? 1 : 0.5)};
pointer-events: ${props => (props.shouldActive === true ? 'auto' : 'none')};
`
export { NavigationIcon }