pf-web-notification-library
Version:
A React component library for Firebase push notifications using PrimeReact Toaster
16 lines (15 loc) • 581 B
TypeScript
import React from "react";
import { MessagePayload } from "firebase/messaging";
interface NotificationProviderProps {
firebaseConfig: Record<string, string>;
vapidKey: string;
children: React.ReactNode;
saveToken: (token: string) => void;
triggerApi: (value: boolean) => void;
handleClick: (data: unknown) => void;
handleVisibility: (data: MessagePayload) => boolean;
showConfirmationDialog: (data: unknown) => void;
className?: string;
}
export declare const NotificationProvider: React.FC<NotificationProviderProps>;
export {};