/** @format */ /** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Fill } from 'react-slot-fill'; import { isArray, noop } from 'lodash'; import { IconButton } from '@wordpress/components'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import './style.scss'; import { getAdminLink } from 'lib/nav-utils'; const Header = ( { sections, onToggle, isSidebarOpen } ) => { const _sections = isArray( sections ) ? sections : [ sections ]; return (

WooCommerce { _sections.map( ( subSection, i ) => { subSection } ) }

); }; Header.propTypes = { sections: PropTypes.node.isRequired, onToggle: PropTypes.func.isRequired, isSidebarOpen: PropTypes.bool, }; Header.defaultProps = { onToggle: noop, } export default function( props ) { return (
); }