import React from "react"; import { Card, Button } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import TicketHeaderSkeleton from "../TicketHeaderSkeleton"; import ArrowBackIos from "@material-ui/icons/ArrowBackIos"; import { useHistory } from "react-router-dom"; const useStyles = makeStyles((theme) => ({ ticketHeader: { display: "flex", backgroundColor: "#eee", flex: "none", borderBottom: "1px solid rgba(0, 0, 0, 0.12)", [theme.breakpoints.down("sm")]: { flexWrap: "wrap", }, }, })); const TicketHeader = ({ loading, children }) => { const classes = useStyles(); const history = useHistory(); const handleBack = () => { history.push("/tickets"); }; return ( <> {loading ? ( ) : ( {children} )} ); }; export default TicketHeader;