/*
 * Runtime Web – Unified Serverless Framework for Full-Stack TypeScript Applications
 * Documentation: https://runtimeweb.com/docs/getting-started
 *
 * @template: ai-chat
 */

/**
 * InputArea Component
 *
 * Text input area for composing and sending chat messages.
 * Thin wrapper around InputComposer that preserves the original props interface.
 *
 * @requirements 4.1
 */

import * as React from 'react';
import { InputComposer } from './InputComposer';

interface InputAreaProps {
    onSend: (message: string) => void;
    disabled: boolean;
}

/**
 * InputArea component for message composition and submission.
 * Delegates to InputComposer for enhanced functionality.
 */
export const InputArea: React.FC<InputAreaProps> = ({ onSend, disabled }) => {
    return (
        <InputComposer
            onSend={onSend}
            disabled={disabled}
            placeholder="Type a message..."
        />
    );
};
