bigbuffet-rw/app/soapbox/features/ui/components/column_loading.js

32 lines
778 B
JavaScript
Raw Normal View History

2020-03-27 13:59:38 -07:00
import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import LoadingIndicator from 'soapbox/components/loading_indicator';
2020-03-27 13:59:38 -07:00
export default class ColumnLoading extends ImmutablePureComponent {
static propTypes = {
title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
icon: PropTypes.string,
};
static defaultProps = {
title: '',
icon: '',
};
render() {
const { title, icon } = this.props;
2020-03-27 13:59:38 -07:00
return (
<Column>
<ColumnHeader icon={icon} title={title} focusable={false} />
<LoadingIndicator />
2020-03-27 13:59:38 -07:00
</Column>
);
}
}