air-command-ui-library
Version:
A React component library for Air Command System with Storybook
17 lines (16 loc) • 417 B
TypeScript
import React, { ReactNode } from 'react';
export type ToastType = 'success' | 'error';
interface ToastData {
id: number;
type: ToastType;
title: string;
message: string;
}
interface ToastContextValue {
showToast: (toast: Omit<ToastData, 'id'>) => void;
}
export declare const ToastProvider: React.FC<{
children: ReactNode;
}>;
export declare function useToast(): ToastContextValue;
export {};