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