UNPKG

1.25 kBTypeScriptView Raw
1import * as React from 'react';
2/**
3 * This function is a helper for creating an array of renderable favorite items for the Application launcher or Select
4 *
5 * @param {object} items The items rendered in Select or Application aLauncher
6 * @param {boolean} isGrouped Flag indicating if items are grouped
7 * @param {any[]} favorites Array of ids of favorited items
8 * @param {boolean} isEnterTriggersArrowDown Flag indicating if we should add isEnterTriggersArrowDown to favorited item
9 */
10export declare const createRenderableFavorites: (items: object, isGrouped: boolean, favorites: any[], isEnterTriggersArrowDown?: boolean) => React.ReactNode[];
11/**
12 * This function is a helper for extending the array of renderable favorite with the select/application launcher items to render in the Application launcher or Select
13 *
14 * @param {object} items The items rendered in Select or Application aLauncher
15 * @param {boolean} isGrouped Flag indicating if items are grouped
16 * @param {any[]} favorites Array of ids of favorited items
17 */
18export declare const extendItemsWithFavorite: (items: object, isGrouped: boolean, favorites: any[]) => React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
19//# sourceMappingURL=favorites.d.ts.map
\No newline at end of file