import { Button, Chip, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Typography, } from '@mui/material' import { Fragment } from 'react' import { useTranslation } from 'react-i18next' import { BaseEmpty } from '@/components/base' interface Props { open: boolean logInfo: [string, string][] onClose: () => void } export const LogViewer = (props: Props) => { const { open, logInfo, onClose } = props const { t } = useTranslation() return ( {t('profiles.modals.logViewer.title')} {logInfo.map(([level, log]) => ( {log} ))} {logInfo.length === 0 && } ) }