import React from 'react';
/**
* Display an animated wait icon in the middle of the page
*/
export default class WaitIcon extends React.Component {
render() {
if (this.props.type === 'page') {
return (
);
}
const className = 'fa fa-circle-o-notch fa-spin';
if (this.props.type === 'card') {
return
;
}
return ;
}
}
WaitIcon.propTypes = {
type: React.PropTypes.oneOf(['page', 'field', 'card'])
};
WaitIcon.defaultProps = {
type: 'page'
};