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).

36 lines 1.2 kB
import { Swipe } from "../hooks/useSwipe"; import { JSX, ReactNode, type Dispatch, type SetStateAction } 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; } export interface NotificationContext { notis: Notify[]; toasts: Notify[]; count: number; read: boolean; addNotify: (obj: Notify) => void; addToast: (obj: Notify) => void; removeNotify: (id?: number | string) => void; removeToast: (id?: number | string) => void; resetCount: () => void; setNotis: (notis: Notify[]) => void; setToasts: Dispatch<SetStateAction<Notify[]>>; setRead: Dispatch<SetStateAction<boolean>>; saveNotis: (key?: string) => void; loadNotis: (key?: string) => Notify[]; } export declare const NotificationContext: import("react").Context<NotificationContext>; export default function Notification({ children }: { children?: any; }): JSX.Element; //# sourceMappingURL=Notification.d.ts.map