import React from 'react'
import PropTypes from 'prop-types'
import OutlineList from './OutlineList'
function OutlineRoot({ outline, jumpToLine }) {
return (
{outline.length ? (
) : (
)}
)
}
OutlineRoot.propTypes = {
outline: PropTypes.array.isRequired,
jumpToLine: PropTypes.func.isRequired
}
export default OutlineRoot