

import {Button, Result } from 'antd';
import { ResultStatusType } from 'antd/lib/result';
interface PropForException {
  statusCode:ResultStatusType,
  statusMessage:string,
  history: any,
}
export const ExceptionComponent = (props:PropForException) => {
  return (
    <Result
      status={props.statusCode}
      title={props.statusCode}
      subTitle={props.statusMessage}
      extra={<Button type='primary' onClick={() => props.history.push('/')}>Back Home</Button>}
    />
  );
}
// export default LogOut;