import type { BoxProps, VariantProps } from "@shopify/restyle"; import type { Theme } from "@themes/Theme"; import { ActivityIndicator, TouchableOpacity } from "react-native"; import ButtonBase from "./bases/ButtonBase"; import Text from "./bases/Text"; type Props = BoxProps & VariantProps & VariantProps & { label: string; onPress: () => void; isLoading?: boolean; }; const Button = ({ onPress, label, isLoading, textVariants, variant, ...rest }: Props) => { return ( {isLoading ? ( ) : ( {label} )} ); }; export default Button;