| 3 | import { InterviewType, Industry } from '@/types/interview'; |
| 4 | |
| 5 | interface InterviewState { |
| 6 | type: InterviewType | null; |
| 7 | industry: Industry | null; |
| 8 | currentPhaseIndex: number; |
| 9 | |
| 10 | // 操作 |
| 11 | setType: (type: InterviewType) => void; |
| 12 | setIndustry: (industry: Industry) => void; |
| 13 | setPhaseIndex: (index: number) => void; |
| 14 | clearInterview: () => void; |
| 15 | } |
| 16 | |
| 17 | export const useInterviewStore = create<InterviewState>()( |
| 18 | persist( |
nothing calls this directly
no outgoing calls
no test coverage detected