@magicbell/react-headless
Version:
Hooks to build a notification inbox
10 lines (9 loc) • 376 B
TypeScript
import INotificationStore from '../../../types/INotificationStore.js';
/**
* Factory of notifications stores.
*
* @param props Properties to initialize the store with
* @param strategy Function to compare notifications with the context
* @returns An empty store of notifications
*/
export default function buildStore(props: Record<string, unknown>): INotificationStore;