import React from 'react';
import { Info } from 'lucide-react-native';

import type { SuperagentToolRendererProps } from '../../types';
import { ToolWidgetRow } from '../primitives/ToolWidgetRow';
import { getWidgetStatus } from '../toolWidgetUtils';

// get_connectors_info — native port of the web GetConnectorsInfo row (pure
// status line; no args or results shown, same as the web).
export function GetConnectorsInfoWidget({ toolCall }: SuperagentToolRendererProps) {
  const status = getWidgetStatus(toolCall.status);

  return (
    <ToolWidgetRow
      icon={Info}
      status={status}
      title={status === 'running' ? 'Gathering connectors information' : 'Gathered connectors information'}
    />
  );
}
