import { Fragment } from "react"; import { useTranslation } from "react-i18next"; import { Button, Chip, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Typography, } from "@mui/material"; 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("Script Console")} {logInfo.map(([level, log], index) => ( {log} ))} {logInfo.length === 0 && } ); };