(config: InterviewConfig)
| 23 | } |
| 24 | |
| 25 | saveState(config: InterviewConfig) { |
| 26 | const state: StoredInterviewState = { |
| 27 | type: config.type.id, |
| 28 | industry: config.industry?.id || '', |
| 29 | resume: config.resume, |
| 30 | timestamp: Date.now() |
| 31 | }; |
| 32 | |
| 33 | try { |
| 34 | localStorage.setItem(STORAGE_KEY, JSON.stringify(state)); |
| 35 | } catch (error) { |
| 36 | console.error('Failed to save interview state:', error); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | loadState(): StoredInterviewState | null { |
| 41 | try { |