import { useTranslations } from "next-intl"; import { NezhaAPISafe } from "../app/[locale]/types/nezha-api"; import { cn, formatBytes } from "@/lib/utils"; export function ServerCardPopoverCard({ className, title, content, children, }: { className?: string; title: string; content?: string; children?: React.ReactNode; }) { return (
{title}
{children ? ( children ) : (
{content}
)}
); } export default function ServerCardPopover({ host, status, }: { host: NezhaAPISafe["host"]; status: NezhaAPISafe["status"]; }) { const t = useTranslations("ServerCardPopover"); return (
item).join(", ")}`} />
); }