refactor: simplify cross-session messaging
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user