import React from 'react'; import { TouchableOpacity } from 'react-native'; import { Normalize } from '../../utils/normalize'; import { Box } from '../Box'; import { Text } from '../Text'; import { useTheme } from '../../theme/ThemeProvider'; type OrderNowButtonProps = React.ComponentProps & { label: string; value: string; onPress: () => void; disabled?: boolean; }; /** * @label Button title * @value Button total * @onPress Called when the touch is released, but not if cancelled * @see https://zeroheight.com/502cb86ad/p/281e3e-buttons/t/943b4d */ export const OrderNowButton = ({ label, value, onPress, disabled, ...props }: OrderNowButtonProps) => { const { fonts } = useTheme(); return ( {label} {value} ); };