refactor(chat): simplify ChatViewport and footer structure for improved readability and maintainability

This commit is contained in:
Anish Sarkar 2026-05-01 03:10:21 +05:30
parent a66c1576b9
commit 833b4dd441
3 changed files with 19 additions and 21 deletions

View file

@ -113,14 +113,10 @@ const ThreadContent: FC = () => {
>
<ChatViewport
footer={
<>
<AuiIf condition={({ thread }) => !thread.isEmpty}>
<PremiumQuotaPinnedAlert />
</AuiIf>
<AuiIf condition={({ thread }) => !thread.isEmpty}>
<Composer />
</AuiIf>
</>
<AuiIf condition={({ thread }) => !thread.isEmpty}>
<PremiumQuotaPinnedAlert />
<Composer />
</AuiIf>
}
>
<AuiIf condition={({ thread }) => thread.isEmpty}>