import { LoadSurveyResult } from '@/domain/usecases' ; import { atom } from 'recoil' ; export const surveyResultState = atom ( { key : 'surveyResultState' , default : { isLoading : false , error : '' , surveyResult : null as LoadSurveyResult . Model , reload : false } } ) ; export const onSurveyAnswerState = atom ( { key : 'onSurveyAnswerState' , default : { onAnswer : null as ( answer : string ) => void } } ) ;