import React from "react"; import { Box, Text, Stack, Button } from "@mantine/core"; import { useTranslation } from "react-i18next"; import { ToolRegistry } from "../../types/tool"; interface ToolPickerProps { selectedToolKey: string | null; onSelect: (id: string) => void; /** Pre-filtered tools to display */ filteredTools: [string, ToolRegistry[string]][]; } const ToolPicker = ({ selectedToolKey, onSelect, filteredTools }: ToolPickerProps) => { const { t } = useTranslation(); return ( {filteredTools.length === 0 ? ( {t("toolPicker.noToolsFound", "No tools found")} ) : ( filteredTools.map(([id, { icon, name }]) => ( )) )} ); }; export default ToolPicker;