UNPKG

@coinmeca/ui

Version:

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

38 lines 1.16 kB
import { Swipe } from './useSwipe'; import { JSX, ReactNode } from 'react'; export interface Notify { type?: "toast" | "notify"; id?: number | string; title?: string; date?: number | string | Date; img?: string; style?: object; message?: any | ReactNode | JSX.Element; timer?: number; importance?: boolean; remain?: boolean; swipe?: Swipe; } interface NotificationStore { notis: Notify[]; toasts: Notify[]; nonce: number; read: boolean; count: number; setNotiList: (notis: Notify[]) => void; setToasts: (toasts: Notify[]) => void; setNonce: (nonce: number) => void; setRead: (read: boolean) => void; setCount: (count: number) => void; setNotis: (notis: Notify[]) => void; addNotify: (obj: Notify) => void; addToast: (obj: Notify) => void; removeNotify: (id?: number | string) => void; removeToast: (id?: number | string) => void; resetCount: () => void; saveNotis: (key: string) => void; loadNotis: (key: string) => Notify[]; } export default function useNotification(): NotificationStore; export {}; //# sourceMappingURL=useNotification.d.ts.map