Files
outline/app/stores/EmojiStore.ts
Tom Moor bf45e97641 chore: Enforce type import consistency (#10968)
* Update types

* fix circular dep

* type imports

* lint type imports and --fix
2025-12-19 23:07:02 -05:00

24 lines
559 B
TypeScript

import { computed } from "mobx";
import Emoji from "~/models/Emoji";
import naturalSort from "@shared/utils/naturalSort";
import type RootStore from "./RootStore";
import Store, { RPCAction } from "./base/Store";
export default class EmojisStore extends Store<Emoji> {
actions = [
RPCAction.Info,
RPCAction.List,
RPCAction.Create,
RPCAction.Delete,
];
constructor(rootStore: RootStore) {
super(rootStore, Emoji);
}
@computed
get orderedData(): Emoji[] {
return naturalSort(Array.from(this.data.values()), "name");
}
}