UNPKG

agora-classroom-sdk

Version:

For publishing npm package agora-classroom-sdk (Web & Electron). Get more information from https://docs.agora.io

17 lines (16 loc) 530 B
import { FC, PropsWithChildren } from 'react'; import { BaseProps } from '../util/type'; import './index.css'; export declare type ToastCategory = 'success' | 'error' | 'warning'; export interface ToastProps extends BaseProps { type?: 'success' | 'error' | 'warning'; text?: string; duration?: number; closeToast?: CallableFunction; canStop?: boolean; } declare type ToastType = FC<PropsWithChildren<ToastProps>> & { show: (params: ToastProps) => void; }; export declare const Toast: ToastType; export {};