From 0c6c6e0246c1cb73a5d8e6638bb388e45d7d84ef Mon Sep 17 00:00:00 2001 From: Arik Chakma <arikchangma@gmail.com> Date: Wed, 9 Apr 2025 21:34:14 +0600 Subject: [PATCH] wip --- src/components/GenerateCourse/AICourseContent.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/GenerateCourse/AICourseContent.tsx b/src/components/GenerateCourse/AICourseContent.tsx index e2abc32dc..820b33197 100644 --- a/src/components/GenerateCourse/AICourseContent.tsx +++ b/src/components/GenerateCourse/AICourseContent.tsx @@ -8,6 +8,7 @@ import { Map, MessageCircleOffIcon, MessageCircleIcon, + GitForkIcon, } from 'lucide-react'; import { useEffect, useState } from 'react'; import { type AiCourse } from '../../lib/ai'; @@ -327,6 +328,17 @@ export function AICourseContent(props: AICourseContentProps) { onUpgrade={() => setShowUpgradeModal(true)} onShowLimits={() => setShowAILimitsPopup(true)} /> + {isForkable && ( + <button + className="hidden items-center justify-center gap-1 rounded-md bg-yellow-400 px-4 py-1 text-sm font-medium underline-offset-2 hover:bg-yellow-500 lg:flex" + onClick={() => { + setIsForkingCourse(true); + }} + > + <GitForkIcon className="size-4" /> + Fork + </button> + )} </div> </div> </header>