@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

main
tsx 37 lines 781 Bytes
Raw
1 import { View } from "react-native";
2
3 import { AppText as Text } from "./ui/AppText";
4 import { cn } from "../lib/cn";
5
6 export interface StatusTone {
7 readonly label: string;
8 readonly pillClassName: string;
9 readonly textClassName: string;
10 }
11
12 export function StatusPill(
13 props: StatusTone & {
14 readonly size?: "default" | "compact";
15 },
16 ) {
17 const size = props.size ?? "default";
18 return (
19 <View
20 className={cn(
21 "rounded-full",
22 size === "compact" ? "px-2.5 py-1" : "px-3 py-1.5",
23 props.pillClassName,
24 )}
25 >
26 <Text
27 className={cn(
28 "font-t3-bold",
29 size === "compact" ? "text-2xs" : "text-xs",
30 props.textClassName,
31 )}
32 >
33 {props.label}
34 </Text>
35 </View>
36 );
37 }