/** * ↑ submit icon button rendered in the new-issue modal's Stack header * (headerRight slot). Visually pairs with ModalCloseButton on the left: * same size/shape circle, brand accent when active vs dimmed disabled * state. Shows a spinner instead of the arrow while the mutation is * in-flight, so the user can't double-tap. */ import { ActivityIndicator, Pressable, View } from "react-native"; import { Ionicons } from "@expo/vector-icons"; import { cn } from "@/lib/utils"; interface Props { disabled: boolean; onPress: () => void; loading?: boolean; } export function SubmitIssueButton({ disabled, onPress, loading }: Props) { const interactive = !disabled && !loading; return ( {loading ? ( ) : ( )} ); }