mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-12-01 01:16:14 +00:00
33 lines
813 B
TypeScript
33 lines
813 B
TypeScript
import { LightragStatus } from '@/api/lightrag'
|
|
import { useTranslation } from 'react-i18next'
|
|
import {
|
|
Dialog,
|
|
DialogContent,
|
|
DialogHeader,
|
|
DialogTitle,
|
|
} from '@/components/ui/Dialog'
|
|
import StatusCard from './StatusCard'
|
|
|
|
interface StatusDialogProps {
|
|
open: boolean
|
|
onOpenChange: (open: boolean) => void
|
|
status: LightragStatus | null
|
|
}
|
|
|
|
const StatusDialog = ({ open, onOpenChange, status }: StatusDialogProps) => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<Dialog open={open} onOpenChange={onOpenChange}>
|
|
<DialogContent className="sm:max-w-[500px]">
|
|
<DialogHeader>
|
|
<DialogTitle>{t('graphPanel.statusDialog.title')}</DialogTitle>
|
|
</DialogHeader>
|
|
<StatusCard status={status} />
|
|
</DialogContent>
|
|
</Dialog>
|
|
)
|
|
}
|
|
|
|
export default StatusDialog
|