import type { ReactNode } from "react"; import { Pressable, View } from "react-native"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { SymbolView, type AppSymbolName } from "./AppSymbol"; import { AppText as Text } from "./AppText"; import { cn } from "../lib/cn"; import { useThemeColor } from "../lib/useThemeColor"; export interface AndroidHeaderAction { readonly accessibilityLabel: string; readonly icon: AppSymbolName; readonly onPress: () => void; readonly disabled?: boolean; } export function AndroidHeaderIconButton(props: { readonly accessibilityLabel: string; readonly icon: AppSymbolName; readonly onPress?: () => void; readonly disabled?: boolean; }) { const foregroundColor = useThemeColor("--color-foreground"); const disabledColor = useThemeColor("--color-icon-subtle"); return ( ); } export function AndroidScreenHeader(props: { readonly title: string; readonly subtitle?: string | null; readonly actions?: ReadonlyArray; readonly trailing?: ReactNode; readonly onBack?: () => void; readonly embedded?: boolean; }) { const insets = useSafeAreaInsets(); const foregroundColor = useThemeColor("--color-foreground"); return ( {props.onBack ? ( ) : null} {props.title} {props.subtitle ? ( {props.subtitle} ) : null} {props.actions?.map((action) => ( ))} {props.trailing} ); } export function AndroidSheetHeader( props: Omit[0], "embedded">, ) { return ; }