northants-design-system
Version:
Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.
25 lines (24 loc) • 443 B
TypeScript
export interface WebChatAssistantProps {
/**
* The chatbot endpoint url
*/
endpointUrl: string;
/**
* Optional starting message text
*/
startMessage?: string;
}
export interface WebChatMessageProps {
/**
* The message text
*/
text: string;
/**
* The sender of the message
*/
sender: 'user' | 'bot';
/**
* Is the message a chunk?
*/
isChunk?: boolean;
}