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-native"; |
| 2 | import { View } from "react-native"; |
| 3 | |
| 4 | import { AppText as Text } from "../../components/ui/AppText"; |
| 5 | |
| 6 | /** The guest's name above their message, where "Sent by T3 Code" sits for server messages. */ |
| 7 | export function GuestMessageName(props: { readonly name: string }) { |
| 8 | const gt = useGT(); |
| 9 | return ( |
| 10 | <Text |
| 11 | accessibilityLabel={gt("{name} (guest)", { name: props.name })} |
| 12 | className="mb-1 pr-1 font-t3-medium text-2xs text-adaptive-fuchsia-600-300" |
| 13 | numberOfLines={1} |
| 14 | > |
| 15 | {props.name} |
| 16 | </Text> |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * First child of a sent guest bubble. Over the bubble color it gives the web's 14% fuchsia mix, |
| 22 | * which every theme gets without a per-theme token. |
| 23 | */ |
| 24 | export function GuestBubbleTint() { |
| 25 | return ( |
| 26 | <View pointerEvents="none" className="absolute inset-0 rounded-[20px] bg-fuchsia-500/14" /> |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | /** A pending guest bubble has a dashed edge and no fill. */ |
| 31 | export const GUEST_PENDING_BUBBLE_CLASS_NAME = |
| 32 | "min-w-0 rounded-[20px] border border-dashed border-adaptive-fuchsia-500-a50-300-a40 bg-transparent px-3.5 py-2.5"; |