import { useTranslation } from 'react-i18next' import OutlineList from './outline-list' import { OutlineItemData } from '@/features/ide-react/types/outline' function OutlineRoot({ outline, jumpToLine, highlightedLine, }: { outline: OutlineItemData[] jumpToLine: (line: number, syncToPdf: boolean) => void highlightedLine?: number }) { 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')}
)}
) } export default OutlineRoot