Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
680 B

import { atom } from 'nanostores';
import type { AllowedLessonType } from '../lib/course';
export type CurrentLessonType = {
courseId: string;
chapterId?: string;
lessonId?: string;
lessonType?: AllowedLessonType;
challengeStatus?: 'pending' | 'wrong' | 'correct';
quizStatus?: 'pending' | 'wrong' | 'correct';
};
export const currentLesson = atom<CurrentLessonType | null>(null);
export type AllowedAIChatType = 'user' | 'system';
export type AIChatHistoryType = {
type: AllowedAIChatType;
message: string;
};
export const roadmapAIChatHistory = atom<AIChatHistoryType[]>([
{
type: 'system',
message: 'Hey, how can I help you today? 🤖',
},
]);