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