import Styles from "@/constants/Styles";
import { Pressable, Text, TouchableWithoutFeedback, View } from "react-native";

type PropsBtnHeader = {
   onPress: () => void;
   item: React.ReactNode;
};

export function ButtonHeader({ onPress, item }: PropsBtnHeader) {
   return (
      <Pressable onPressOut={() => {onPress()}}>
         <View style={[Styles.btnIconHeader]}>
            {item}
         </View>
      </Pressable>
   )
}