2017-07-09 13:02:26 +00:00
|
|
|
import PropTypes from 'prop-types';
|
2017-07-07 22:06:02 +00:00
|
|
|
|
2023-05-28 14:38:10 +00:00
|
|
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
|
|
|
|
2017-12-04 07:26:40 +00:00
|
|
|
import Column from 'flavours/glitch/components/column';
|
|
|
|
import ColumnHeader from 'flavours/glitch/components/column_header';
|
2017-07-07 22:06:02 +00:00
|
|
|
|
2017-09-20 17:58:44 +00:00
|
|
|
export default class ColumnLoading extends ImmutablePureComponent {
|
2017-07-07 22:06:02 +00:00
|
|
|
|
2017-09-20 17:58:44 +00:00
|
|
|
static propTypes = {
|
2017-09-22 15:50:29 +00:00
|
|
|
title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
|
2017-09-20 17:58:44 +00:00
|
|
|
icon: PropTypes.string,
|
2022-10-20 12:35:29 +00:00
|
|
|
multiColumn: PropTypes.bool,
|
2017-09-20 17:58:44 +00:00
|
|
|
};
|
2017-07-09 13:02:26 +00:00
|
|
|
|
2017-09-20 17:58:44 +00:00
|
|
|
static defaultProps = {
|
|
|
|
title: '',
|
|
|
|
icon: '',
|
|
|
|
};
|
|
|
|
|
|
|
|
render() {
|
2022-10-20 12:35:29 +00:00
|
|
|
let { title, icon, multiColumn } = this.props;
|
|
|
|
|
2017-09-20 17:58:44 +00:00
|
|
|
return (
|
|
|
|
<Column>
|
2022-10-20 12:35:29 +00:00
|
|
|
<ColumnHeader icon={icon} title={title} multiColumn={multiColumn} focusable={false} placeholder />
|
2017-09-20 17:58:44 +00:00
|
|
|
<div className='scrollable' />
|
|
|
|
</Column>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|