From dda46f455852e281ee306e8ca4561dd4d5343011 Mon Sep 17 00:00:00 2001 From: liushuxiang <276900785@qq.com> Date: Fri, 21 Apr 2023 16:32:48 +0800 Subject: [PATCH] add empty propmt component --- components/ChatSection/ChatList/index.tsx | 1 + components/Prompt/index.tsx | 7 +++++++ components/index.ts | 1 + 3 files changed, 9 insertions(+) create mode 100644 components/Prompt/index.tsx diff --git a/components/ChatSection/ChatList/index.tsx b/components/ChatSection/ChatList/index.tsx index 329526a..95f6bb9 100644 --- a/components/ChatSection/ChatList/index.tsx +++ b/components/ChatSection/ChatList/index.tsx @@ -25,6 +25,7 @@ const ChatList: React.FC = () => { tip: t("content-deleted") as string, btn: t("undo") as string, }); + const scrollToBottom = useScrollToBottom(); const onDelete = (item: ChatItem) => { diff --git a/components/Prompt/index.tsx b/components/Prompt/index.tsx new file mode 100644 index 0000000..46da852 --- /dev/null +++ b/components/Prompt/index.tsx @@ -0,0 +1,7 @@ +import * as React from "react"; + +const Propmpt: React.FC = () => { + return