import * as React from 'react';
import UIComponents from './UI.Components';
import { withRouter, RouteChildrenProps } from 'react-router-dom';

/** Props接口 */
interface IProps extends RouteChildrenProps {
    onTabChange:(path)=>void
}
/**
 * 申诉请求
 */
class Product extends React.Component<IProps & RouteChildrenProps, any> {


    constructor(props) {
        super(props);
        if(this.props.location.state){
            this.props.onTabChange(this.props.location.pathname);
        }
    }
    render() {
        return (
            <UIComponents/>
        );
    }
}
export default withRouter<any,any>(Product as any)