import Activity from 'flarum/components/Activity';
import listItems from 'flarum/helpers/listItems';
import ItemList from 'flarum/utils/ItemList';
import { truncate } from 'flarum/utils/string';
/**
* The `PostedActivity` component displays an activity feed item for when a user
* started or posted in a discussion.
*
* ### Props
*
* - All of the props for Activity
*/
export default class PostedActivity extends Activity {
description() {
const post = this.props.activity.subject();
return app.trans(post.number() === 1 ? 'core.started_a_discussion' : 'core.posted_a_reply');
}
content() {
const post = this.props.activity.subject();
return (
{listItems(this.headerItems().toArray())}