"use client"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { InfoIcon } from "lucide-react"; import { useClientContext } from "@app/hooks/useClientContext"; import { InfoSection, InfoSectionContent, InfoSections, InfoSectionTitle } from "@app/components/InfoSection"; import { useTranslations } from "next-intl"; type ClientInfoCardProps = {}; export default function SiteInfoCard({}: ClientInfoCardProps) { const { client, updateClient } = useClientContext(); const t = useTranslations(); return ( {t("clientInformation")} <> {t("status")} {client.online ? (
{t("online")}
) : (
{t("offline")}
)}
{t("address")} {client.subnet.split("/")[0]}
); }