import Component from 'flarum/Component'; import LoadingIndicator from 'flarum/components/LoadingIndicator'; import classList from 'flarum/utils/classList'; /** * The `UserBio` component displays a user's bio, optionally letting the user * edit it. */ export default class UserBio extends Component { constructor(...args) { super(...args); /** * Whether or not the bio is currently being edited. * * @type {Boolean} */ this.editing = false; /** * Whether or not the bio is currently being saved. * * @type {Boolean} */ this.loading = false; } view() { const user = this.props.user; let content; if (this.editing) { content =