import React from 'react' import PropTypes from 'prop-types' import { useTranslation } from 'react-i18next' import OutlineList from './outline-list' function OutlineRoot({ outline, jumpToLine, highlightedLine }) { const { t } = useTranslation() return (
{outline.length ? ( ) : (
{t('we_cant_find_any_sections_or_subsections_in_this_file')}.{' '} {t('find_out_more_about_the_file_outline')}
)}
) } OutlineRoot.propTypes = { outline: PropTypes.array.isRequired, jumpToLine: PropTypes.func.isRequired, highlightedLine: PropTypes.number } export default OutlineRoot