From 47a053748093e9f8aa8d154bde5638774c78ca83 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Wed, 6 Nov 2024 22:13:46 +0600 Subject: [PATCH] wip --- src/components/Course/CourseLayout.tsx | 7 + src/components/CourseAI/CourseAI.tsx | 32 +++++ src/components/CourseAI/CourseAIPopover.tsx | 137 ++++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 src/components/CourseAI/CourseAI.tsx create mode 100644 src/components/CourseAI/CourseAIPopover.tsx diff --git a/src/components/Course/CourseLayout.tsx b/src/components/Course/CourseLayout.tsx index 543e56929..b95e55695 100644 --- a/src/components/Course/CourseLayout.tsx +++ b/src/components/Course/CourseLayout.tsx @@ -11,6 +11,7 @@ import { currentLesson } from '../../stores/course'; import { getPercentage } from '../../helper/number'; import { cn } from '../../lib/classname'; import { CourseNotes } from '../CourseNotes/CourseNotes'; +import { CourseAI } from '../CourseAI/CourseAI'; export type CourseLayoutProps = { children: React.ReactNode; @@ -140,6 +141,12 @@ export function CourseLayout(props: CourseLayoutProps) { {activeChapterId && activeLessonId && (