import * as React from 'react';
import { ViewStyle } from 'react-native';

import { FormRowPresets } from './form-row.presets';

/**
 * The properties you can pass to FormRow.
 */
export interface FormRowProps {
  /**
   * Children components.
   */
  children?: React.ReactNode;

  /**
   * Override the container style... useful for margins and padding.
   */
  style?: ViewStyle | ViewStyle[];

  /**
   * The type of border.
   */
  preset: FormRowPresets;

  /**
   * This form row contains an error
   */
  error?: boolean;
}
