import { Badge, Card, CardContent, CardHeader, ScrollArea, Separator, } from "@marzneshin/components"; import type { NodeType } from ".."; import { useNodesLog } from ".."; import type { FC } from "react"; import { useTranslation } from "react-i18next"; interface LogContainerProps { node: NodeType; backend: string; } export const LogContainer: FC = ({ node, backend }) => { const { logs, status, logsDiv } = useNodesLog(node, backend); const { t } = useTranslation(); return (

{`${backend} ${t("logs")}`}

{status}
{logs.map((log: string, index: number) => (

{log}

{index !== logs.length - 1 && ( )}
))}
); };