import { Ionicons } from "@expo/vector-icons"; import { BlurView, type BlurViewProps } from "expo-blur"; import { useRouter } from "expo-router"; import { Platform, TouchableOpacity, type TouchableOpacityProps, } from "react-native"; interface Props extends BlurViewProps { background?: "blur" | "transparent"; touchableOpacityProps?: TouchableOpacityProps; } export const HeaderBackButton: React.FC = ({ background = "transparent", touchableOpacityProps, ...props }) => { const router = useRouter(); if (background === "transparent" && Platform.OS !== "android") return ( router.back()} {...touchableOpacityProps} > ); return ( router.back()} className=' bg-neutral-800/80 rounded-full p-2' {...touchableOpacityProps} > ); };