import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; import Icon from '@material-ui/core/Icon'; import {makeStyles} from '@material-ui/core/styles'; import moment from 'moment'; import {useTranslation} from 'react-i18next'; import Link from '@material-ui/core/Link'; import {Car} from '../../generated/graphql'; interface Props { car: Car; toggleEditing: () => void; } const Header = (props: Props) => { const {car, toggleEditing} = props; const classes = useStyles(); const {t} = useTranslation(); return (