UNPKG

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.

16 lines (12 loc) 476 B
import {ChatSegmentStatus} from '../../types/chatSegment/chatSegment'; export const getChatSegmentClassName = (status: ChatSegmentStatus): string => { const baseClassName = 'nlux-chatSegment'; if (status === 'complete') { return `${baseClassName} nlux-chatSegment--complete`; } if (status === 'error') { return `${baseClassName} nlux-chatSegment--error`; } // Active status return `${baseClassName} nlux-chatSegment--active`; };