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

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

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