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

{t("page.nodes.settings.log-container.title")}

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

{log}

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