import { Ionicons } from "@expo/vector-icons"; import { BlurView, type BlurViewProps } from "expo-blur"; import { useRouter } from "expo-router"; import { Platform } from "react-native"; import { Pressable, type PressableProps } from "react-native-gesture-handler"; interface Props extends BlurViewProps { background?: "blur" | "transparent"; pressableProps?: Omit; } export const HeaderBackButton: React.FC = ({ background = "transparent", pressableProps, ...props }) => { const router = useRouter(); if (Platform.OS === "ios") { return ( router.back()} className='flex items-center justify-center w-9 h-9' {...pressableProps} > ); } if (background === "transparent" && Platform.OS !== "android") return ( router.back()} {...pressableProps}> ); return ( router.back()} className=' rounded-full p-2' {...pressableProps} > ); };