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 (14 loc) 550 B
import {updateComposerDom} from '@shared/components/Composer/update'; import {CompUpdater} from '../../../types/comp'; import {CompComposerActions, CompComposerElements, CompComposerProps} from './composer.types'; export const updateChatbox: CompUpdater<CompComposerProps, CompComposerElements, CompComposerActions> = ( { propName, currentValue, newValue, dom, }) => { if (propName === 'domCompProps' && dom.elements?.root) { updateComposerDom(dom.elements.root, currentValue, newValue); } };