import Box from "@components/bases/Box";
import { Ionicons } from "@expo/vector-icons";
import { TouchableOpacity } from "react-native";

type Props = {
	onPress: () => void;
};
const GoBackIconButton = ({ onPress }: Props) => {
	return (
		<TouchableOpacity onPress={onPress}>
			<Box width={40} height={40} alignItems={"center"} justifyContent={"center"}>
				<Ionicons name="arrow-back" size={24} color="black" />
			</Box>
		</TouchableOpacity>
	);
};

export default GoBackIconButton;
