import React from 'react'; import { Icon } from 'UI'; import { withRouter } from 'react-router-dom'; interface Props { history: any; } function PreferencesView(props: Props) { const onExit = () => { props.history.push('/'); }; return ( <>