import Styles from "@/constants/Styles";
import { Feather } from "@expo/vector-icons";
import { Pressable, Text, View } from "react-native";

type Props = {
   value: string
   onPress?: () => void
   round?: boolean
}

export default function ButtonSelect({ value, onPress, round }: Props) {
   return (
      <View style={[Styles.mv15]}>
         <Pressable onPress={onPress}>
            <View style={[Styles.inputRoundForm, Styles.inputRoundFormRight, round && Styles.round30, Styles.pv10]}>
               <Feather name="arrow-right-circle" size={20} color="black" />
               <Text style={[Styles.cBlack]}>{value}</Text>
            </View>
         </Pressable>
      </View>
   )
}