mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 21:29:03 +01:00
7fe5623a27
Port 3bf2a7296e
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
15 lines
459 B
TypeScript
15 lines
459 B
TypeScript
import type { RecordOf } from 'immutable';
|
|
import { Record } from 'immutable';
|
|
|
|
import type { ApiCustomEmojiJSON } from 'flavours/glitch/api_types/custom_emoji';
|
|
|
|
type CustomEmojiShape = Required<ApiCustomEmojiJSON>; // no changes from server shape
|
|
export type CustomEmoji = RecordOf<CustomEmojiShape>;
|
|
|
|
export const CustomEmojiFactory = Record<CustomEmojiShape>({
|
|
shortcode: '',
|
|
static_url: '',
|
|
url: '',
|
|
category: '',
|
|
visible_in_picker: false,
|
|
});
|