import { Pressable, Text, View } from 'react-native' import { ChevronLeft, RefreshCw, X } from 'lucide-react-native' import { colors } from '../theme/mobile-theme' import { styles } from './mobile-source-control-styles' type Props = { embedded: boolean worktreeLabel: string ioBusy: boolean onBack: () => void onRefresh: () => void } export function MobileSourceControlHeader({ embedded, worktreeLabel, ioBusy, onBack, onRefresh }: Props) { return ( [styles.backButton, pressed && styles.backButtonPressed]} onPress={onBack} hitSlop={8} accessibilityLabel={embedded ? 'Close source control' : 'Back to session'} > {embedded ? ( ) : ( )} Source Control {worktreeLabel} [ styles.refreshButton, ioBusy && styles.refreshButtonDisabled, pressed && styles.refreshButtonPressed ]} onPress={onRefresh} disabled={ioBusy} hitSlop={8} accessibilityLabel="Refresh source control" > ) }