Skip to content

Commit

Permalink
chore: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
xingwanying committed Jun 5, 2024
1 parent 861b83c commit e146da8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions client/components/BotDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client';
import React from 'react';
import { ChatWindow } from '@/components/chat/ChatWindow';
import { Spinner } from '@nextui-org/react';
import { useBotDetail } from '@/app/hooks/useBot';

Expand All @@ -18,18 +17,6 @@ const BotDetail = (props: { id: string }) => {
<Spinner />
</div>
)}
<ChatWindow
endpoint="/api/chat"
avatar={detail?.avatar!}
name={detail?.name!}
starters={detail?.starters!}
description={detail?.description!}
placeholder={detail?.description || 'Ask me anything!'}
enableImgGeneration={detail?.enable_img_generation!}
botId={detail?.id!}
voice={detail?.voice ?? undefined}
streamming
/>
</>
);
};
Expand Down

0 comments on commit e146da8

Please sign in to comment.