import {IconButton} from "@mui/material";
import CloseIcon from '@mui/icons-material/Close';

export default function TitleHeader({ name, handleClose }:{ name: string|undefined, handleClose: Function }){
    return (
        <>
            <div className="report-title-header">
                <p>{name}</p>
                <IconButton aria-label="Close">
                    <CloseIcon sx={{color: "#E0E3E7"}} onClick={() => handleClose()}/>
                </IconButton>
            </div>
        </>
    )
}