import React from 'react'; import { Space } from 'antd'; import classNames from 'classnames'; import { _get, isFunction, isArray } from '../../utils'; import InteriorTool from './InteriorTool'; import TitleView from './TitleView'; import './index.less'; const ToolbarView = props => { const { setState, title, toolbarRender, toolbarAction = false, request, refresh, fullScreen, currentTab } = props; const content = isFunction(toolbarRender) ? toolbarRender() : (toolbarRender || []); const isTopHead = title || (!!content && content?.length !== 0) || (isArray(request) && request.length > 1); return (
{content}
); } export default ToolbarView;