diff --git a/x-pack/packages/kbn-ai-assistant/src/buttons/ask_assistant_button.tsx b/x-pack/packages/kbn-ai-assistant/src/buttons/ask_assistant_button.tsx index 060e829b4907e..624c3df9a1e84 100644 --- a/x-pack/packages/kbn-ai-assistant/src/buttons/ask_assistant_button.tsx +++ b/x-pack/packages/kbn-ai-assistant/src/buttons/ask_assistant_button.tsx @@ -39,10 +39,6 @@ export type AskAssistantButtonProps = ( onClick: () => void; }; -const AI_ASSISTANT_LABEL = i18n.translate('xpack.aiAssistant.aiAssistantLabel', { - defaultMessage: 'AI Assistant', -}); - export function AskAssistantButton({ fill, flush, @@ -54,6 +50,10 @@ export function AskAssistantButton({ defaultMessage: 'Ask Assistant', }); + const aiAssistantLabel = i18n.translate('xpack.aiAssistant.aiAssistantLabel', { + defaultMessage: 'AI Assistant', + }); + switch (variant) { case 'basic': return ( @@ -85,13 +85,13 @@ export function AskAssistantButton({ return (