@pagamio/frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
18 lines (17 loc) • 505 B
TypeScript
import type { ReactNode } from 'react';
import React from 'react';
import { type ToastVariant } from '../components/ui/Toast';
export interface PartialToastData {
title?: string;
message: string;
variant: ToastVariant;
}
interface ToastContextProps {
addToast: (props: PartialToastData) => void;
}
export declare const useToast: () => ToastContextProps;
interface ToastProviderProps {
children: ReactNode;
}
export declare const ToastProvider: React.FC<ToastProviderProps>;
export {};