communication-react-19
Version:
React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)
56 lines • 1.41 kB
TypeScript
/// <reference types="react" />
/**
* @beta
* Error bar type for {@link SendBoxErrorBarError}
*/
export declare enum SendBoxErrorBarType {
/** Info styled MessageBar */
info = 0,
/** Error styled MessageBar */
error = 1,
/** Blocked styled MessageBar */
blocked = 2,
/** SevereWarning styled MessageBar */
severeWarning = 3,
/** Success styled MessageBar */
success = 4,
/** Warning styled MessageBar */
warning = 5
}
/**
* @beta
* Error to be displayed to the user in an error bar above sendbox.
*/
export interface SendBoxErrorBarError {
/** Error Message to be displayed */
message: string;
/**
* Unix Timestamp. Preferred generation using `Date.now()`
*/
timestamp: number;
/**
* ErrorBar type. Defaults to `warning`.
*/
errorBarType?: SendBoxErrorBarType;
}
/**
* @private
*/
export interface SendBoxErrorBarProps {
/** Error to render */
error?: SendBoxErrorBarError;
/**
* Automatically dismisses the error bar after the specified delay in ms.
* Example: `10 * 1000` would be 10 seconds
*/
dismissAfterMs?: number;
/**
* Callback to invoke when the error bar is dismissed
*/
onDismiss?: () => void;
}
/**
* @private
*/
export declare const SendBoxErrorBar: (props: SendBoxErrorBarProps) => JSX.Element;
//# sourceMappingURL=SendBoxErrorBar.d.ts.map