/** @format */ /** * External dependencies */ import { isArray } from 'lodash'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import './style.scss'; import { getAdminLink } from 'lib/nav-utils'; // TODO Implement timeline icon const Header = ( { sections, showTimeline } ) => { const renderBreadcrumbs = () => { const _sections = isArray( sections ) ? sections : [ sections ]; const crumbs = _sections.map( ( subSection, i ) => { subSection } ); return (

WooCommerce { crumbs }

); }; return (
{ renderBreadcrumbs() } { showTimeline &&
}
); }; Header.propTypes = { sections: PropTypes.node.isRequired, showTimeline: PropTypes.bool, }; Header.defaultProps = { showTimeline: true, }; export default Header;