import { Trans, useLingui } from "@lingui/react/macro"; import { Checkbox, Input, Switch } from "@rakazo/ui-web"; import { useId } from "react"; /** Capability tags and the builtin tool allowlist of one bot, edited inside its settings. */ export function BotCapabilitiesFields({ tags, onTagsChange, restrictBuiltinTools, onRestrictBuiltinToolsChange, allowedBuiltinTools, onAllowedBuiltinToolsChange, toolNames, }: { tags: string; onTagsChange: (tags: string) => void; restrictBuiltinTools: boolean; onRestrictBuiltinToolsChange: (restrict: boolean) => void; allowedBuiltinTools: string[]; onAllowedBuiltinToolsChange: (names: string[]) => void; toolNames: string[]; }) { const { t } = useLingui(); const ids = useId(); return (
{restrictBuiltinTools ? (
{toolNames.map((name) => ( ))}
) : null}
); }