import { ScrollView, StyleSheet, View } from "react-native"; import { FilterChip } from "@/components/FilterChip"; import { spacing } from "@/constants/theme"; import type { InvoiceStatus } from "@/lib/invoice-status"; export type InvoiceViewSection = "details" | "preview"; type InvoiceViewChipsProps = { section: InvoiceViewSection; onSectionChange: (section: InvoiceViewSection) => void; status: InvoiceStatus; onEdit: () => void; onSend: () => void; }; export function InvoiceViewChips({ section, onSectionChange, status, onEdit, onSend, }: InvoiceViewChipsProps) { const sendLabel = status === "draft" ? "Send" : "Resend"; return ( onSectionChange("details")} /> {status !== "paid" ? ( ) : null} onSectionChange("preview")} /> ); } const styles = StyleSheet.create({ row: { flexDirection: "row", gap: spacing.sm, paddingVertical: spacing.xs, }, });