import ConfigProvider from '../config-provider';
import React, { Component } from 'react';
import classnames from 'classnames';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { Shell as NextShell } from '@alifd/next';
class Shell extends Component {
    render() {
        // 默认是使用主题色
        const { prefix = 'next-', className, type = 'brand', size = 'medium' } = this.props;
        const cls = classnames({
            [`${prefix}shell-${size}`]: true,
            [className]: !!className,
        });
        return (React.createElement(NextShell, Object.assign({}, this.props, { type: type, className: cls })));
    }
}
Shell.Branding = NextShell.Branding;
Shell.Navigation = NextShell.Navigation;
Shell.Action = NextShell.Action;
Shell.MultiTask = NextShell.MultiTask;
Shell.LocalNavigation = NextShell.LocalNavigation;
Shell.AppBar = NextShell.AppBar;
Shell.Content = NextShell.Content;
Shell.Footer = NextShell.Footer;
Shell.Ancillary = NextShell.Ancillary;
Shell.ToolDock = NextShell.ToolDock;
Shell.ToolDockItem = NextShell.ToolDockItem;
hoistNonReactStatics(Shell, NextShell);
export default ConfigProvider.config(Shell);
