Files
J-Board-Lite/src/app/(admin)/admin/nodes/[id]/_components/node-detail-tabs.tsx
2026-04-30 22:09:21 +10:00

23 lines
784 B
TypeScript

"use client";
import { StatusBadge } from "@/components/shared/status-badge";
import type { NodeDetail } from "../node-detail-data";
import { InboundsTab } from "./tabs/inbounds-tab";
export function NodeDetailTabs({ node }: { node: NodeDetail }) {
return (
<section className="space-y-4">
<div className="flex flex-wrap items-center justify-between gap-3">
<div>
<p className="text-xs font-medium tracking-wide text-muted-foreground">线</p>
<h2 className="text-lg font-semibold tracking-tight">3x-ui </h2>
</div>
<StatusBadge tone={node.inbounds.length > 0 ? "info" : "neutral"}>
{node.inbounds.length}
</StatusBadge>
</div>
<InboundsTab node={node} />
</section>
);
}