import { Ionicons } from "@expo/vector-icons";
import { Pressable, StyleSheet } from "react-native";

export function NavigationHeader({
  navigation,
}: {
  navigation: { goBack: () => void };
}) {
  return (
    <Pressable
      onPress={() => navigation.goBack()}
      style={styles.container}
    >
      <Ionicons name="arrow-back" size={24} color="black" />
    </Pressable>
  );
}
const styles = StyleSheet.create({
  container: {
    paddingHorizontal: 8,
    margin: 5,
  },
});
