import React from 'react' import PropTypes from 'prop-types' import OutlineList from './outline-list' function OutlineRoot({ outline, jumpToLine, highlightedLine }) { return (
{outline.length ? ( ) : (
We can’t find any sections or subsections in this file.{' '} Find out more about the file outline
)}
) } OutlineRoot.propTypes = { outline: PropTypes.array.isRequired, jumpToLine: PropTypes.func.isRequired, highlightedLine: PropTypes.number } export default OutlineRoot