generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
55 lines (48 loc) · 1.16 KB
/
types.ts
File metadata and controls
55 lines (48 loc) · 1.16 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
50
51
52
53
54
55
import type React from 'react';
export enum Topic {
Banking = 'Banking',
Investing = 'Investing',
Taxes = 'Taxes',
TaxFiling = 'TaxFiling',
Credit = 'Credit',
Insurance = 'Insurance',
}
export type TopicKey = keyof typeof Topic;
export interface TopicInfo {
key: TopicKey;
title: string;
Icon: React.FC<{ className?: string }>;
description: string;
prompt: string;
}
export interface QuizQuestion {
question: string;
options: string[];
correctAnswerIndex: number;
}
export interface BadgeInfo {
milestone: number;
title: string;
description: string;
Icon: React.FC<{ className?: string }>;
}
export interface InvestmentGoal {
id: string;
name: string;
targetAmount: number;
currentAmount: number;
}
export type View =
| { type: 'welcome' }
| { type: 'topic'; key: TopicKey }
| { type: 'quiz'; key: TopicKey }
| { type: 'simulator' }
| { type: 'streak' }
| { type: 'goals' }
| { type: 'tips' }
| { type: 'life_insurance_calculator' }
| { type: 'health_insurance_calculator' }
| { type: 'sip_calculator' }
| { type: 'mutual_fund_calculator' }
| { type: 'credit_score_calculator' }
| { type: 'chatbot' };