blob: 474c64dac8f412d6b4b9192ba8fb3c1194f3d883 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import type {
StickerBrowseResult,
StickerItem,
StickerProvider,
StickerSearchResult,
} from "../types";
const LOGOS_PROVIDER_ID = "logos";
const EMPTY_SEARCH_RESULT: StickerSearchResult = {
items: [] as StickerItem[],
total: 0,
hasMore: false,
};
const EMPTY_BROWSE_RESULT: StickerBrowseResult = {
sections: [],
};
export const logosProvider: StickerProvider = {
id: LOGOS_PROVIDER_ID,
async search(): Promise<StickerSearchResult> {
return EMPTY_SEARCH_RESULT;
},
async browse(): Promise<StickerBrowseResult> {
return EMPTY_BROWSE_RESULT;
},
resolveUrl({ stickerId }: { stickerId: string }): string {
return stickerId;
},
};
|