diff --git a/src/components/GenerateCourse/AICourse.tsx b/src/components/GenerateCourse/AICourse.tsx index 7d4ea4326..8a92cf99f 100644 --- a/src/components/GenerateCourse/AICourse.tsx +++ b/src/components/GenerateCourse/AICourse.tsx @@ -4,6 +4,7 @@ import { cn } from '../../lib/classname'; import { isLoggedIn } from '../../lib/jwt'; import { showLoginPopup } from '../../lib/popup'; import { UserCoursesList } from './UserCoursesList'; +import { FineTuneCourse } from './FineTuneCourse'; export const difficultyLevels = [ 'beginner', @@ -98,6 +99,8 @@ export function AICourse(props: AICourseProps) { + + void; +}; + +function Question(props: QuestionProps) { + const { label, placeholder, value, onChange, autoFocus = false } = props; + + return ( + + + {label} + + onChange(e.target.value)} + autoFocus={autoFocus} + /> + + ); +} + +export function FineTuneCourse() { + const [isFineTuning, setIsFineTuning] = useState(false); + + const [about, setAbout] = useState(''); + const [goal, setGoal] = useState(''); + const [customInstructions, setCustomInstructions] = useState(''); + + return ( + + + setIsFineTuning(!isFineTuning)} + /> + Tell us more to tailor the course (optional){' '} + + recommended + + + + {isFineTuning && ( + + + + + + )} + + ); +}