import { Animated, StyleSheet } from 'react-native' import { Appbar, Button, useTheme } from 'react-native-paper' import { useHeaderTextColor } from '../shared/utils' import { getTranslation } from '../translations/utils' import { useSafeAreaInsets } from 'react-native-safe-area-context' export interface DatePickerModalHeaderProps { saveLabel?: string saveLabelDisabled?: boolean uppercase?: boolean onDismiss: () => void onSave: () => void locale: string | undefined closeIcon?: string } export default function DatePickerModalHeader( props: DatePickerModalHeaderProps ) { const { locale, closeIcon = 'close' } = props const saveLabel = props.saveLabel || getTranslation(locale, 'save') const color = useHeaderTextColor() const insets = useSafeAreaInsets() const theme = useTheme() return ( <> ) } const styles = StyleSheet.create({ animated: { elevation: 4, }, appbarHeader: { elevation: 0, backgroundColor: 'transparent', justifyContent: 'space-between', }, buttonStyle: { paddingHorizontal: 8, }, buttonLabel: { flexGrow: 1, }, })