component-library-mustafa-akagunduz
Version:
Air Command System projesi için geliştirilmiş React component kütüphanesi
16 lines (15 loc) • 395 B
TypeScript
import React from 'react';
import './ToastItem.css';
export type ToastType = 'success' | 'error' | 'warning' | 'info';
export interface Toast {
id: string;
type: ToastType;
title: string;
message?: string;
duration?: number;
}
export interface ToastItemProps {
toast: Toast;
onRemove: (id: string) => void;
}
export declare const ToastItem: React.FC<ToastItemProps>;