From eb2816b4e5e4f8f2fb5d2be2d7640eacc1a2ebda Mon Sep 17 00:00:00 2001 From: Sir Blob <76974209+GamerBoss101@users.noreply.github.com> Date: Sat, 25 Jan 2025 12:13:18 -0500 Subject: [PATCH] Patient Chat Bot --- src/app/(panels)/suite/patient/chat/page.tsx | 26 ++++++++++++++++--- src/components/panel-ui/patient/app-chat.tsx | 20 ++++++++++++++ .../panel-ui/patient/app-sidebar.tsx | 10 +++---- src/components/ui/textarea.tsx | 22 ++++++++++++++++ 4 files changed, 70 insertions(+), 8 deletions(-) create mode 100644 src/components/panel-ui/patient/app-chat.tsx create mode 100644 src/components/ui/textarea.tsx diff --git a/src/app/(panels)/suite/patient/chat/page.tsx b/src/app/(panels)/suite/patient/chat/page.tsx index f361192..bf59c51 100644 --- a/src/app/(panels)/suite/patient/chat/page.tsx +++ b/src/app/(panels)/suite/patient/chat/page.tsx @@ -1,10 +1,30 @@ "use client" +import * as React from "react" + +import { Button } from "@/components/ui/button" +import { Message } from "@/components/panel-ui/patient/app-chat" +import { Input } from "@/components/ui/input" + +import { Card, CardContent } from "@/components/ui/card" + export default function Chat() { return (
- +
+ + +
+ + +
+
+ + +
+
+
+
) -} - +} \ No newline at end of file diff --git a/src/components/panel-ui/patient/app-chat.tsx b/src/components/panel-ui/patient/app-chat.tsx new file mode 100644 index 0000000..c6fa2cc --- /dev/null +++ b/src/components/panel-ui/patient/app-chat.tsx @@ -0,0 +1,20 @@ +import Image from "next/image" + +// @ts-ignore +export function Message({ avatarUrl, message, sender }) { + return ( +
+ {`${sender}'s +
+ {sender} +

{message}

+
+
+ ) +} \ No newline at end of file diff --git a/src/components/panel-ui/patient/app-sidebar.tsx b/src/components/panel-ui/patient/app-sidebar.tsx index ee2e55d..519bb00 100644 --- a/src/components/panel-ui/patient/app-sidebar.tsx +++ b/src/components/panel-ui/patient/app-sidebar.tsx @@ -22,7 +22,7 @@ export default function Sidebar() { - + Home @@ -30,17 +30,17 @@ export default function Sidebar() { - + - Users + Chat - + - Settings + Account diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx new file mode 100644 index 0000000..e56b0af --- /dev/null +++ b/src/components/ui/textarea.tsx @@ -0,0 +1,22 @@ +import * as React from "react" + +import { cn } from "@/lib/utils" + +const Textarea = React.forwardRef< + HTMLTextAreaElement, + React.ComponentProps<"textarea"> +>(({ className, ...props }, ref) => { + return ( +