Skip to content
Snippets Groups Projects
CloseModalButton.js 680 B
Newer Older
import React from 'react';
import { Button } from '@material-ui/core';
import styled from 'styled-components'
import CloseIcon from '@material-ui/icons/Close';

export default function CloseModalButton (props) {
    return (
        <StyledCloseModalButton onClick={props.handleClose}>
vgm18's avatar
vgm18 committed
            <CloseIcon style={props.contrast === "" ? { color: "#666" } : { color: "white" }}/>
        </StyledCloseModalButton>
    )
}

const StyledCloseModalButton = styled(Button)`
    display : inline-block;
    position : relative;
    float : right !important;
    margin-right : 4px !important;
    background : transparent !important;
    min-width: 0 !important;
    width : 40px;
`