import { View, Button, Row, scale } from 'expo-dev-client-components'; import * as React from 'react'; import { StyleSheet } from 'react-native'; import { ActivityIndicator } from '../components/ActivityIndicator'; type ButtonProps = React.ComponentProps; type BasicButtonProps = ButtonProps & { label: string; type?: ButtonProps['bg']; size?: 'medium' | 'small'; isLoading?: boolean; onPress?: () => void; }; const sizeMap: Record<'medium' | 'small', any> = { medium: { px: '3', py: '2', }, small: { px: '2', py: '1', }, }; export function BasicButton({ label, type = 'tertiary', size = 'medium', children, isLoading, ...props }: BasicButtonProps) { return ( {label} {children} {isLoading && ( )} ); }