27 lines
1.3 KiB
TypeScript
27 lines
1.3 KiB
TypeScript
// Module ID: 10635
|
|
// Function ID: 10636
|
|
// Name: StickersSearchUtils
|
|
// Dependencies: [5612, 7533, 2]
|
|
// Exports: searchAllStickers, searchSendableStickers, searchUnsendableStickers
|
|
|
|
// Module 10635 (StickersSearchUtils)
|
|
import AutocompleteUtilsDefault from "AutocompleteUtils" /* 5612 */;
|
|
import StickerSendability from "StickerSendability" /* 7533 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/stickers/StickersSearchUtils.tsx");
|
|
|
|
export const searchAllStickers = function searchAllStickers(arg0) {
|
|
const items = [arg0];
|
|
return AutocompleteUtilsDefault.queryStickers(items, true).map((sticker) => sticker.sticker);
|
|
};
|
|
export const searchSendableStickers = function searchSendableStickers(arg0, arg1) {
|
|
const items = [arg0];
|
|
const items1 = [arg1, (arg0, arg1) => arg1 === StickerSendability.StickerSendability.SENDABLE];
|
|
return AutocompleteUtilsDefault.queryStickers(items, true, items1).map((sticker) => sticker.sticker);
|
|
};
|
|
export const searchUnsendableStickers = function searchUnsendableStickers(arg0, arg1) {
|
|
const items = [arg0];
|
|
const items1 = [arg1, (arg0, arg1) => arg1 !== StickerSendability.StickerSendability.SENDABLE];
|
|
return AutocompleteUtilsDefault.queryStickers(items, true, items1).map((sticker) => sticker.sticker);
|
|
};
|