Conditionally render retry button

This commit is contained in:
Ovindu Atukorala
2024-10-09 10:26:17 +00:00
parent 1e6cc95f09
commit b6710beadc

View File

@@ -331,12 +331,11 @@ const ConversationBubble = forwardRef<
<CopyButton text={message} />
</div>
</div>
<div
className={`relative mr-5 block items-center justify-center
${type !== 'ERROR' ? 'group-hover:lg:visible' : ''}`}
>
<div>{retryBtn}</div>
</div>
{type === 'ERROR' && (
<div className="relative mr-5 block items-center justify-center">
<div>{retryBtn}</div>
</div>
)}
{handleFeedback && (
<>
<div