import { StyleSheet, TouchableOpacity, type TouchableOpacityProps, View, } from "react-native"; import type { Theme } from "../../../core/design-system/index.js"; import { radius, spacing } from "../../design-system/index.js"; import { RNImage } from "./RNImage.js"; import { ThemedText } from "./text.js"; type ThemedButtonProps = TouchableOpacityProps & { theme: Theme; variant?: "primary" | "secondary" | "accent"; }; export function ThemedButton(props: ThemedButtonProps) { const variant = props.variant ?? "primary"; const { style: styleOverride, theme, ...restProps } = props; return ( {props.children} ); } export function ThemedButtonWithIcon( props: ThemedButtonProps & { title: string; icon: string; }, ) { const { theme, title, icon, onPress } = props; return ( {title} ); } const styles = StyleSheet.create({ button: { alignItems: "center", borderRadius: radius.lg, flexDirection: "row", justifyContent: "center", padding: spacing.md, }, });