import { Ionicons } from "@expo/vector-icons"; import { Pressable, View } from "react-native"; import { Text } from "@/components/ui/Text"; import { colors, radii } from "@/lib/theme"; export function CategoryTile({ icon, label, selected, onPress, }: { icon: keyof typeof Ionicons.glyphMap; label: string; selected?: boolean; onPress?: () => void; }) { return ( ({ width: 72, alignItems: "center", gap: 7, opacity: pressed ? 0.85 : 1, })} > {label} ); } /** Larger square action used for the prescription entry points on Home. */ export function ActionTile({ icon, title, subtitle, tone = "brand", onPress, }: { icon: keyof typeof Ionicons.glyphMap; title: string; subtitle: string; tone?: "brand" | "surface"; onPress?: () => void; }) { const brand = tone === "brand"; return ( ({ flex: 1, backgroundColor: brand ? colors.brand : colors.surface, borderRadius: radii.card, borderWidth: 1, borderColor: brand ? colors.brand : colors.line, padding: 14, gap: 10, opacity: pressed ? 0.92 : 1, })} > {title} {subtitle} ); }