import { Dialogic , states } from 'dialogic' ; import { useStream } from 'use-stream' ; type TModel = { _ : Dialogic . States ; } ; export const useDialogicState = ( ) => { useStream < TModel > ( { model : ( ) => ( { _ : states , } ) , defer : true , } ) ; } ;