import { InitArguments } from "../../static/index";
import * as React from "react";

export default function (args: InitArguments) {
    args.mainMaster.setMenu(
        {
            id: "temp", name: "Temp", path: "#temp", icon: "icon-dashboard",
            children: [
                { id: "home-index", name: "Home", path: "#home/index", parentId: "temp" }
            ]
        },
        { id: "temp1", name: "Temp1", path: "#temp" }
    )
    args.mainMaster.setToolbar(
        <ul className="toolbar">
            <li className="light-blue pull-right" onClick={() => this.logout()}>
                <i className="icon-off"></i>
                <span style={{ paddingLeft: 4, cursor: "pointer" }}>退出</span>
            </li>
            <li className="light-blue pull-right" style={{ marginRight: 10 }}>
                {/* {username || ""}{roleName ? `  (${roleName})` : ""} */}
                18502146746 (超级管理员)
            </li>
        </ul>
    )
}