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
asfasf
; +}; + +export default Propmpt; diff --git a/components/index.ts b/components/index.ts index f31eca4..79a7dc8 100644 --- a/components/index.ts +++ b/components/index.ts @@ -15,3 +15,4 @@ export { default as Button } from "./Button"; export { default as Modal } from "./Modal"; export { default as Confirm } from "./Modal/confirm"; export { default as Select } from "./Select"; +export { default as Prompt } from "./Prompt";