forked from mckaywrigley/chatbot-ui-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Codewand
committed
Mar 29, 2023
1 parent
329a7c9
commit c75c4dc
Showing
3 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { FC } from "react"; | ||
|
||
interface Props { | ||
onReset: () => void; | ||
} | ||
|
||
export const ResetChat: FC<Props> = ({ onReset }) => { | ||
return ( | ||
<div className="flex flex-row items-center"> | ||
<button | ||
className="text-sm sm:text-base text-neutral-900 font-semibold rounded-lg px-4 py-2 bg-neutral-200 hover:bg-neutral-300 focus:outline-none focus:ring-1 focus:ring-neutral-300" | ||
onClick={() => onReset()} | ||
> | ||
Reset | ||
</button> | ||
</div> | ||
); | ||
}; | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters