import React, { FC } from 'react'; import { IconXClosesmall1, IconXDownload1, } from '../../../icons'; import { View, TouchableOpacity } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import createStyle from './style'; import { useTheme } from '../../Theme'; interface ImagePreviewHeaderProps { index: number; onDownload: (index: number) => void; onClose: () => void; } const ImagePreviewHeader: FC = ({ index, onDownload, onClose, }) => { const insets = useSafeAreaInsets(); const token = useTheme(); const styles = createStyle(token); return ( onDownload?.(index)}> ); }; export default ImagePreviewHeader;