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.

50 lines (39 loc) 1.28 kB
/* eslint-disable @typescript-eslint/no-explicit-any */ import {ComposerStatus} from '@shared/components/Composer/props' import {ReactElement} from 'react' export type ComposerProps = { // State and option props status: ComposerStatus prompt?: string placeholder?: string autoFocus?: boolean hideStopButton?: boolean hasValidInput?: boolean submitShortcut?: 'Enter' | 'CommandEnter' // Event Handlers onChange: (value: string) => void onSubmit: () => void onCancel: () => void // UI Overrides Loader: ReactElement } export type RemixComposerProps = { // State and option props status: ComposerStatus prompt?: string placeholder?: string autoFocus?: boolean hideStopButton?: boolean remixAiMethodList?: Array<string> hasValidInput?: boolean submitShortcut?: 'Enter' | 'CommandEnter' // Event Handlers onChange: (value: string) => void onSubmit: () => void onCancel: () => void // Actions addContextFiles?: (pluginName: any, methodName: string, payload?: { context: 'currentFile' | 'workspace'|'openedFiles' | 'none', files?: Array<string> }) => Promise<any> trackSentiment?: (sentiment: string) => void // UI Overrides Loader: ReactElement }