-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
49 lines (41 loc) · 1.04 KB
/
Copy pathtypes.ts
File metadata and controls
49 lines (41 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export type ViewState = 'home' | 'archive' | 'materials' | 'tutor' | 'exam' | 'reader';
export interface ChatMessage {
role: 'user' | 'model';
text: string;
isError?: boolean;
}
export interface ExamYear {
year: number;
variants: ExamVariant[];
}
export interface ExamVariant {
id: string;
name: string; // e.g., "I ვარიანტი"
pdfUrl?: string; // Placeholder for real PDF link
solutionsUrl?: string; // Placeholder
}
export interface Problem {
question: string;
solution?: string;
}
export interface Topic {
id: string;
title: string;
content: string; // Summary/Conspect
problems: Problem[]; // Updated to support solutions
}
export interface Book {
id: string;
title: string;
author: string;
coverColor: string;
topics: Topic[];
}
export interface QuizQuestion {
id: number;
question: string;
options: string[]; // For multiple choice
correctIndex?: number; // For multiple choice
type: 'multiple_choice' | 'open';
correctAnswerText?: string; // For open questions (to show after answering)
}