1import { View } from "react-native";
2
3import { AppText as Text } from "./AppText";
4import { cn } from "../lib/cn";
5
6export interface StatusTone {
7 readonly label: string;
8 readonly pillClassName: string;
9 readonly textClassName: string;
10}
11
12export 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}