import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { error } from "electron-log"; import { t } from "i18next"; import React from "react"; interface InstallationErrorDialogProps { error: string; backendError?: string; installationState: string; latestLog: any; retryInstallation: () => void; retryBackend?: () => void; } const InstallationErrorDialog = ({ error, backendError, installationState, latestLog, retryInstallation, retryBackend, }:InstallationErrorDialogProps) => { if (backendError) { return ( {t("layout.backend-startup-failed")}
{backendError}
); } return ( {t("layout.installation-failed")}
{error}
); }; export default InstallationErrorDialog;