mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
20 lines
368 B
JavaScript
20 lines
368 B
JavaScript
import Component from 'flarum/Component';
|
|
|
|
/**
|
|
* The `Placeholder` component displays a muted text with some call to action,
|
|
* usually used as an empty state.
|
|
*
|
|
* ### Props
|
|
*
|
|
* - `text`
|
|
*/
|
|
export default class Placeholder extends Component {
|
|
view() {
|
|
return (
|
|
<div className="Placeholder">
|
|
<p>{this.props.text}</p>
|
|
</div>
|
|
);
|
|
}
|
|
}
|