Files
nanobot/webui/src/components/SessionHandleLabel.tsx
T

21 lines
409 B
TypeScript
Raw Normal View History

2026-08-18 18:28:19 +08:00
import type { ReactNode } from "react";
import { InlineTokenHighlight } from "@/components/InlineTokenHighlight";
import { sessionHandleColor } from "@/lib/session-handle";
export function SessionHandleLabel({
id,
children,
}: {
id: string;
children: ReactNode;
}) {
return (
<InlineTokenHighlight
color={sessionHandleColor(id)}
>
{children}
</InlineTokenHighlight>
);
}