Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f970fb8fe | |||
| 2cb842ef67 |
@@ -41,7 +41,7 @@ const ChatbotPage = () => {
|
||||
setTimeout(() => {
|
||||
const botResponse: Message = {
|
||||
id: messages.length + 2,
|
||||
text: `You said: "${input}". I'm just a simple chatbot for now, but I'm learning!`, // Basic logic
|
||||
text: `You said: "${input}". I'm just a simple chatbot for now, but I'm learning!`,
|
||||
sender: "bot"};
|
||||
setMessages((prevMessages) => [...prevMessages, botResponse]);
|
||||
}, 1000);
|
||||
@@ -67,17 +67,17 @@ const ChatbotPage = () => {
|
||||
{
|
||||
name: "Home", id: "/"},
|
||||
{
|
||||
name: "About", id: "/"},
|
||||
name: "About", id: "#about"},
|
||||
{
|
||||
name: "Menu", id: "/"},
|
||||
name: "Menu", id: "#menu"},
|
||||
{
|
||||
name: "Specials", id: "/"},
|
||||
name: "Specials", id: "#specials"},
|
||||
{
|
||||
name: "Testimonials", id: "/"},
|
||||
name: "Testimonials", id: "#testimonials"},
|
||||
{
|
||||
name: "FAQs", id: "/"},
|
||||
name: "FAQs", id: "#faqs"},
|
||||
{
|
||||
name: "Contact", id: "/"},
|
||||
name: "Contact", id: "#contact"},
|
||||
{
|
||||
name: "Chatbot", id: "/chatbot"}
|
||||
]}
|
||||
|
||||
Reference in New Issue
Block a user