/*
 * @Author: cclu
 * @Date: 2022-04-28 10:47:35
 * @LastEditTime: 2022-04-28 15:52:44
 * @LastEditors: Please set LastEditors
 * @Description: 商户完善资料页面
 * @FilePath: \cloud-platform\src\pages\account\company\index.tsx
 */
import { connect } from "umi"
import type { CurrentUser } from "umi"
import type { ConnectState } from "@/models/connect"
import CompanyInfo from "./components/CompanyInfo"
import { PageContainer } from "@ant-design/pro-layout"

const CompayContent: React.FC<{currentUser?: CurrentUser,location: {pathname: string}}> = (props)=>{
    const {currentUser, location} = props
    return (<PageContainer header={{title:'', breadcrumb: {},}}>
        {location && location.pathname === '/merchantManagement/company/create' && <CompanyInfo/>}
        </PageContainer>
    )
} 

export default connect(({ user }: ConnectState) => ({
    currentUser: user.currentUser
}))(CompayContent)