import { Feather } from "@expo/vector-icons"
import { ButtonHeader } from "./buttonHeader"

type Props = {
   onPress?: () => void
   disable?: boolean
}

export default function ButtonNextHeader({ onPress, disable }: Props) {
   return (
      <>
         <ButtonHeader
            item={<Feather name="chevron-right" size={25} color={disable ? "grey" : "white"} />}
            onPress={() => {
               !disable && onPress && onPress()
            }}
         />
      </>
   )
}