This commit is contained in:
Simon Knott 2025-02-13 10:46:12 +01:00
parent 13880434c4
commit 6e910d93c3
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -129,7 +129,7 @@ function Error({ message, error, wallTime, sdkLanguage, pageSnapshot, revealInSo
</div>}
<span style={{ position: 'absolute', right: '5px' }}>
{llmAvailable
? <ToolbarButton onClick={() => setShowLLM(v => !v)} title="Fix with AI" className='copy-to-clipboard-text-button'>Fix with AI</ToolbarButton>
? <ToolbarButton onClick={() => setShowLLM(v => !v)} title="Fix with AI" className='copy-to-clipboard-text-button'>{showLLM ? 'Hide AI' : 'Fix with AI'}</ToolbarButton>
: <CopyPromptButton error={message} pageSnapshot={pageSnapshot} diff={diff} />}
</span>
</div>