import { ViewStyle } from 'react-native';

export interface LoginFormProps {
  /**
   * Callback for login action
   */
  onLogin: (username: string, password: string) => void;

  /**
   * True if logging in, disables button and show activity.
   */
  loading?: boolean;

  /**
   * True if and error during login event is present.
   */
  error?: string;

  /**
   * An optional style override useful for padding & margin.
   */
  style?: ViewStyle;
}
