import React from 'react'
import { Tabs } from 'antd'
import UserManagement from './userManagement'
import UserGroupManagement from './userGroupManagement'
import './admin.less'
const { TabPane } = Tabs

class Admin extends React.Component {
    constructor(props) {
        super(props);
        this.state = {

        }
    };
    render() {
        return (      
            <Tabs 
                className='admin-tabs'
                tabPosition='left'
                defaultActiveKey="userGroup"
            >
                <TabPane tab="用户分组" key="userGroup" >
                    <UserGroupManagement />
                </TabPane>
                <TabPane tab="用户管理" key="user" >
                    <UserManagement/>
                </TabPane>
            </Tabs>
        )


    }
}

export default Admin