The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import { useGT } from "gt-react"; |
| 2 | |
| 3 | /** Bubble classes for a guest's message. A pending one has a dashed edge and no fill. */ |
| 4 | export function guestBubbleClassName(pending: boolean): string { |
| 5 | return pending ? "border border-dashed border-guest/50 bg-transparent" : "bg-guest-surface"; |
| 6 | } |
| 7 | |
| 8 | /** The guest's name above their message, where "Sent by T3 Code" sits for server messages. */ |
| 9 | export function GuestMessageName({ name }: { readonly name: string }) { |
| 10 | const gt = useGT(); |
| 11 | return ( |
| 12 | <p className="me-1 text-2xs text-guest-foreground"> |
| 13 | {name} |
| 14 | <span className="sr-only"> |
| 15 | {" "} |
| 16 | {gt("(guest)", { $context: "marks the sender of a message as a guest" })} |
| 17 | </span> |
| 18 | </p> |
| 19 | ); |
| 20 | } |