import React from 'react';
import {WingBlank} from "antd-mobile";
import Document from 'react-document-title'

import Goods from './components/Goods';
import Meeting from './components/Meet';

import Normal from './components/Normal'

const Work = (props) => {
    const {name} = props.match.params
    return (
        <Document title="新增">
            <WingBlank>
                {name.indexOf('办公用品') > -1 && <Goods {...props}/>}
                {name.indexOf('会议申请') > -1 && <Meeting {...props}/>}
                {name.indexOf('办公用品') < 0 && name.indexOf('会议申请') < 0 && (<Normal {...props}/>)}
            </WingBlank>
        </Document>
    );
}


export default Work;

