import * as React from 'react' import { Animated, StyleSheet } from 'react-native' import { Appbar, Button, useTheme } from 'react-native-paper' import { useHeaderTextColor } from '../utils' import { getTranslation } from '../translations/utils' import { useSafeAreaInsets } from 'react-native-safe-area-context' export interface DatePickerModalHeaderProps { disableSafeTop?: boolean saveLabel?: string saveLabelDisabled?: boolean uppercase?: boolean onDismiss: () => void onSave: () => void locale: string | undefined closeIcon?: string } export default function DatePickerModalHeader( props: DatePickerModalHeaderProps ) { const theme = useTheme() const { disableSafeTop, locale, closeIcon = 'close' } = props const saveLabel = props.saveLabel || getTranslation(locale, 'save') const color = useHeaderTextColor() const insets = useSafeAreaInsets() return ( ) } const styles = StyleSheet.create({ fill: { flex: 1, }, animated: { elevation: 4, }, header: { height: 75, alignItems: 'center', flexDirection: 'row', paddingLeft: 24, paddingRight: 12, }, headerContentContainer: { marginTop: 5, flexDirection: 'row' }, label: { color: '#fff', letterSpacing: 1, fontSize: 13 }, singleHeaderText: { color: '#fff', fontSize: 25 }, rangeHeaderText: { color: '#fff', fontSize: 25 }, headerTextFilled: { color: 'rgba(255,255,255,1)' }, headerTextEmpty: { color: 'rgba(255,255,255,0.5)' }, headerSeparator: { color: 'rgba(255,255,255,1)', fontSize: 25, paddingLeft: 6, paddingRight: 6, }, appbarHeader: { elevation: 0, backgroundColor: 'transparent', }, })