import { ReactNode } from "react"; import { View, Text, GestureResponderEvent } from "react-native"; import { Button as PaperButton } from "react-native-paper"; interface ButtonProps { buttonColor?: string; buttonMode?: "outlined" | "contained"; buttonTextColor?: string; onPress: (event: GestureResponderEvent) => void; disabled: boolean; children: ReactNode; className?: string; icon?: string; } export const Button = ({ buttonColor = "#6750a4", buttonMode = "outlined", buttonTextColor = "white", onPress, disabled, children, className, icon, }: ButtonProps) => { return ( {typeof children === "string" || typeof children === "number" ? ( {children} ) : ( children )} ); };