2017-11-29 14:49:20 +08:00
|
|
|
/*
|
|
|
|
* This file is part of Flarum.
|
|
|
|
*
|
|
|
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
2018-06-20 11:50:31 +08:00
|
|
|
import Component from '../../common/Component';
|
2017-11-29 14:49:20 +08:00
|
|
|
|
|
|
|
export default class DashboardWidget extends Component {
|
|
|
|
view() {
|
2020-04-17 17:57:55 +08:00
|
|
|
return <div className={'DashboardWidget ' + this.className()}>{this.content()}</div>;
|
2017-11-29 14:49:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the class name to apply to the widget.
|
|
|
|
*
|
|
|
|
* @return {String}
|
|
|
|
*/
|
|
|
|
className() {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the content of the widget.
|
|
|
|
*
|
|
|
|
* @return {VirtualElement}
|
|
|
|
*/
|
|
|
|
content() {
|
|
|
|
return [];
|
|
|
|
}
|
|
|
|
}
|