feat/ai-tutor-redesign
Arik Chakma 6 days ago
parent 653778b13d
commit 0c6c6e0246
  1. 12
      src/components/GenerateCourse/AICourseContent.tsx

@ -8,6 +8,7 @@ import {
Map, Map,
MessageCircleOffIcon, MessageCircleOffIcon,
MessageCircleIcon, MessageCircleIcon,
GitForkIcon,
} from 'lucide-react'; } from 'lucide-react';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { type AiCourse } from '../../lib/ai'; import { type AiCourse } from '../../lib/ai';
@ -327,6 +328,17 @@ export function AICourseContent(props: AICourseContentProps) {
onUpgrade={() => setShowUpgradeModal(true)} onUpgrade={() => setShowUpgradeModal(true)}
onShowLimits={() => setShowAILimitsPopup(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>
</div> </div>
</header> </header>

Loading…
Cancel
Save