'use client';
import { jsx as _jsx } from "react/jsx-runtime";
import { ResponseCardRenderer } from './response-cards';
/**
 * ResponseViewer - displays API response with support for different states
 * 
 * Uses modular card components from response-cards/ folder:
 * - IdleCard: No request sent yet
 * - LoadingCard: Request in progress
 * - NetworkErrorCard: Network/connection error
 * - ResponseBodyCard: Success or error with response body
 */ export function ResponseViewer({ responseState, onDebugRequest, onExplainRequest }) {
    return /*#__PURE__*/ _jsx(ResponseCardRenderer, {
        responseState: responseState,
        onDebugRequest: onDebugRequest,
        onExplainRequest: onExplainRequest
    });
}
