remix-nlux
Version:
Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.
19 lines (16 loc) • 657 B
text/typescript
/**
* A message component's possible statuses.
*
* - streaming — A content of the message is handled by a DOM streaming service and the message property is ignored.
* - complete — A content of the message is fully loaded (either in fetch or stream mode). If present, the message
* property is used to render the message.
*/
export type MessageStatus = 'streaming' | 'complete';
export type MessageDirection = 'received' | 'sent';
export type MessageProps = {
direction: MessageDirection;
status: MessageStatus;
message?: string;
format?: 'text' | 'markdown'; // Default is 'text'
htmlSanitizer?: (html: string) => string;
};