UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

20 lines (19 loc) 668 B
import { SCNotificationAggregatedType, SCNotificationType } from '@selfcommunity/types'; /** * Compare widget priority * @param w1 * @param w2 */ export declare const widgetSort: (w1: any, w2: any) => 1 | -1; /** * Get unseen notifications from a collection of item * of type SCNotificationAggregatedType * @return number */ export declare const getUnseenNotification: (data: SCNotificationAggregatedType[]) => SCNotificationType[]; /** * Get unseen notification counter from a colletion of item * of type SCNotificationAggregatedType * @return number */ export declare const getUnseenNotificationCounter: (data: SCNotificationAggregatedType[]) => number;