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