mirror of
https://github.com/langgenius/dify.git
synced 2026-05-01 22:47:15 +08:00
Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
27 lines
771 B
TypeScript
27 lines
771 B
TypeScript
'use client'
|
|
import type { FC } from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { RiCloseLine } from '@remixicon/react'
|
|
import Run from '@/app/components/workflow/run'
|
|
|
|
type ILogDetail = {
|
|
runID: string
|
|
onClose: () => void
|
|
}
|
|
|
|
const DetailPanel: FC<ILogDetail> = ({ runID, onClose }) => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className='relative flex grow flex-col pt-3'>
|
|
<span className='absolute right-3 top-4 z-20 cursor-pointer p-1' onClick={onClose}>
|
|
<RiCloseLine className='h-4 w-4 text-text-tertiary' />
|
|
</span>
|
|
<h1 className='system-xl-semibold shrink-0 px-4 py-1 text-text-primary'>{t('appLog.runDetail.workflowTitle')}</h1>
|
|
<Run runID={runID}/>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default DetailPanel
|