20 lines
488 B
TypeScript
20 lines
488 B
TypeScript
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={20} color={disable ? "grey" : "white"} />}
|
|
onPress={() => {
|
|
!disable && onPress && onPress()
|
|
}}
|
|
/>
|
|
</>
|
|
)
|
|
} |