import { Pressable, StyleSheet, Text } from 'react-native'; import { colors } from '../utils/constants'; export default function PrimaryButton({ label, onPress, disabled = false }) { return ( [ styles.button, pressed ? styles.buttonPressed : null, disabled ? styles.disabled : null ]} > {label} ); } const styles = StyleSheet.create({ button: { alignItems: 'center', backgroundColor: colors.primary, borderRadius: 8, paddingHorizontal: 20, paddingVertical: 14 }, buttonPressed: { opacity: 0.82 }, label: { color: colors.surface, fontSize: 16, fontWeight: '700' }, disabled: { backgroundColor: colors.border }, disabledLabel: { color: colors.muted } });