text: // @flow
  
  import PropTypes from 'prop-types';
  import React from 'react';
  
  const propTypes = {
    label: PropTypes.string,
  };
  
  const defaultProps = {
    label: 'Loading...',
  };
  
  type Props = {
    label: string,
  };
  
  const Loader = ({ label }: Props) => (
    <div
      className="rbt-loader spinner-border spinner-border-sm"
      role="status">
      <span className="sr-only">{label}</span>
    </div>
  );
  
  Loader.propTypes = propTypes;
  Loader.defaultProps = defaultProps;
  
  export default Loader;
  