import Component from "@glimmer/component"; import { i18n } from "discourse-i18n"; import WordCard from "discourse/plugins/discourse-rewind/discourse/components/reports/top-words/word-card"; export default class WordCards extends Component { get topWords() { return this.args.report.data.sort((a, b) => b.score - a.score).slice(0, 5); } }