import { ColorsStatus } from "@/constants/ColorsStatus";
import Styles from "@/constants/Styles";
import { TouchableOpacity } from "react-native";
import Text from './Text';

type Props = {
   text: string;
   onPress: () => void;
   disabled?: boolean
};

export function ButtonForm({ text, onPress, disabled }: Props) {
   return (
      <TouchableOpacity style={[Styles.btnRound, { marginTop: 30,}, disabled && ColorsStatus.gray]} onPress={onPress} disabled={disabled}>
         <Text style={[Styles.textDefaultSemiBold, Styles.cWhite]}>{text}</Text>
      </TouchableOpacity>
   );
}