refactor: simplify cross-session messaging

This commit is contained in:
chengyongru
2026-08-19 01:15:56 +08:00
committed by chengyongru
parent 0e184965e8
commit 251a1ccd40
78 changed files with 1578 additions and 7569 deletions
@@ -0,0 +1,20 @@
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>
);
}