import type { ComponentType } from 'react' import { Pressable } from 'react-native' import { colors } from '../theme/mobile-theme' import { styles } from './mobile-session-styles' type HeaderIconProps = { size?: number color?: string strokeWidth?: number } type MobileSessionHeaderIconButtonProps = { active?: boolean accessibilityLabel: string icon: ComponentType onPress: () => void } export function MobileSessionHeaderIconButton({ active = false, accessibilityLabel, icon: Icon, onPress }: MobileSessionHeaderIconButtonProps) { return ( [ styles.filesButton, pressed && styles.filesButtonPressed, active && styles.filesButtonActive ]} onPress={onPress} hitSlop={8} accessibilityLabel={accessibilityLabel} > ) }