"use client"; import { Alert, AlertDescription } from "@/components/ui/alert"; 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("name")} {client.name} {t("identifier")} {client.niceId} {t("status")} {client.online ? (
{t("online")}
) : (
{t("offline")}
)}
{t("address")} {client.subnet.split("/")[0]}
); }