import { Ionicons } from "@expo/vector-icons"; import { router } from "expo-router"; import { Pressable, ScrollView, View } from "react-native"; import { Text } from "@/components/ui/Text"; import { routes } from "@/lib/routes"; import { colors, radii } from "@/lib/theme"; const ACTIONS: { label: string; icon: keyof typeof Ionicons.glyphMap; href: string; }[] = [ { label: "Orders", icon: "receipt-outline", href: routes.orders }, { label: "Upload Rx", icon: "document-attach-outline", href: routes.rxScan }, { label: "Addresses", icon: "home-outline", href: routes.addresses }, { label: "Rewards", icon: "star-outline", href: routes.loyalty }, ]; export function QuickActions() { return ( {ACTIONS.map((a) => ( router.push(a.href as never)} style={{ minWidth: 86, paddingVertical: 12, paddingHorizontal: 12, borderRadius: radii.md, backgroundColor: colors.surface, borderWidth: 1, borderColor: colors.line, alignItems: "center", gap: 6, }} > {a.label} ))} ); }