import { Ionicons } from "@expo/vector-icons"; import { Pressable, StyleSheet, Text, View } from "react-native"; import { Button } from "@/components/ui/Button"; import { fonts, radii, spacing } from "@/constants/theme"; import { useAppTheme } from "@/contexts/ThemeContext"; type SecondaryAction = { title: string; subtitle?: string; icon: keyof typeof Ionicons.glyphMap; onPress: () => void; loading?: boolean; disabled?: boolean; }; type InvoiceEditorFooterProps = { primaryTitle: string; onPrimary: () => void; primaryLoading?: boolean; primaryDisabled?: boolean; secondary?: SecondaryAction; }; export function InvoiceEditorFooter({ primaryTitle, onPrimary, primaryLoading, primaryDisabled, secondary, }: InvoiceEditorFooterProps) { const { colors } = useAppTheme(); return (