mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 00:33:54 +08:00
20 lines
454 B
JavaScript
20 lines
454 B
JavaScript
import translations from './translations.yml';
|
|
import { createSortOption } from 'plugin-api/beta/client/factories';
|
|
import { t } from 'plugin-api/beta/client/services';
|
|
|
|
const SortOption = createSortOption(
|
|
() => t('talk-plugin-sort-most-liked.label'),
|
|
{ sortBy: 'LIKES', sortOrder: 'DESC' }
|
|
);
|
|
|
|
/**
|
|
* This plugin depends on talk-plugin-viewing-options.
|
|
*/
|
|
|
|
export default {
|
|
translations,
|
|
slots: {
|
|
viewingOptionsSort: [SortOption],
|
|
},
|
|
};
|