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

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

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