import { useListAvailableServices } from "@/features/agent/api/list-available-services"
import { MessageBoardContextChoiceMenu } from "./message-board-context"
import { ToolsMenu } from "./tools-menu"


interface InputSettingsProps {
  showBoardContextOption?: boolean
  memorySearchAvailable?: boolean
}


/**
 * Component that renders input settings options for a chat interface.
 */
export const InputSettings = ({
  showBoardContextOption = false,
  memorySearchAvailable = true,
}: InputSettingsProps) => {
  useListAvailableServices()

  return (
    <>
      <ToolsMenu memorySearchAvailable={memorySearchAvailable} />
      {showBoardContextOption && <MessageBoardContextChoiceMenu />}
    </>
  )
}
