import * as React from "react"; import { TouchableOpacity, Text, View, ViewProps, TextProps, } from "react-native"; import { styles, textStyles } from "./styles"; import { useThemeProvider } from "../../../providers/theme-provider"; import { useSiteSettings } from "../../../providers/site"; interface Props extends ViewProps { variant: "outlined" | "filled" | "raised"; label: string; textProps?: TextProps; onPress: () => void; loading?: boolean; } function Button(props: Props) { const { style: siteStyle } = useSiteSettings(); const background = props.variant === "filled" ? siteStyle.active_color : "white"; return ( {props.label} ); } export default Button;