mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-29 19:40:23 -05:00
16 lines
459 B
TypeScript
16 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,
|
||
|
});
|