@automattic/agenttic-ui
Version:
UI components for the Agenttic framework
25 lines • 1.15 kB
TypeScript
import React from 'react';
import type { Suggestion } from '../../types';
import { type ActionButton } from '../chat/ChatInput';
interface CompactViewProps {
value: string;
onChange: (value: string) => void;
onSubmit: () => void;
onKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
textareaRef: React.RefObject<HTMLTextAreaElement>;
placeholder?: string | string[];
isProcessing: boolean;
onBlur?: () => void;
onExpand?: () => void;
showExpandButton?: boolean;
focusOnMount?: boolean;
customActions?: ActionButton[];
actionOrder?: 'before-submit' | 'after-submit';
onStop?: () => void;
suggestions?: Suggestion[];
clearSuggestions?: () => void;
handleSuggestionSubmit?: (value: string) => void;
}
export declare function CompactView({ value, onChange, onSubmit, onKeyDown, textareaRef, placeholder, isProcessing, onBlur, onExpand, showExpandButton, focusOnMount, customActions, actionOrder, onStop, suggestions, clearSuggestions, handleSuggestionSubmit, }: CompactViewProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=CompactView.d.ts.map