import { LinkifiedText } from '../../../lib/linkified-text'; import { useTranslation } from 'react-i18next'; interface OutputTabProps { outputPreviewName: string; outputPreviewContent: string; onViewFull: () => void; } export function OutputTab({ outputPreviewName, outputPreviewContent, onViewFull }: OutputTabProps) { const { t } = useTranslation('detail'); return (
{t('output.title')}
{outputPreviewName && ( )}
{outputPreviewName ? ( <>
{outputPreviewName}
{/* LinkifiedText turns inline `output/foo.md` references into clickable anchors that the OutputPreviewProvider opens in the preview pane. Plain `
` rendering otherwise. */}
          
        
      ) : (
        
{t('output.empty')}
)}
); }