// @flow
import PropTypes from 'prop-types';
import type { SpaceProps } from '../../../mixins/spacing';
import type { ContainerProps } from '../../../mixins/container';
import { spacePropTypes } from '../../../mixins/spacing';
import { containerPropTypes } from '../../../mixins/container';

export type LoadingIndicatorProps = SpaceProps &
  ContainerProps & {
    ready: boolean,
    variant?: 'neutral',
    minHeight?: string,
  };

export const loadingIndicatorPropTypes = {
  ...spacePropTypes,
  ...containerPropTypes,
  variant: PropTypes.oneOf(['neutral']),
  minHeight: PropTypes.string,
};
