"use client"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { InfoIcon } from "lucide-react"; import { InfoSection, InfoSectionContent, InfoSections, InfoSectionTitle } from "@app/components/InfoSection"; import { useTranslations } from "next-intl"; import { useRemoteExitNodeContext } from "@app/hooks/useRemoteExitNodeContext"; type ExitNodeInfoCardProps = {}; export default function ExitNodeInfoCard({}: ExitNodeInfoCardProps) { const { remoteExitNode, updateRemoteExitNode } = useRemoteExitNodeContext(); const t = useTranslations(); return ( <> {t("status")} {remoteExitNode.online ? (
{t("online")}
) : (
{t("offline")}
)}
{t("address")} {remoteExitNode.address}
); }