import { observable , AnnotationsMap } from "mobx" ; import { useState } from "react" ; export function useLocalObservable < TStore extends Record < string , any > > ( initializer , annotations ? ) { return useState ( ( ) => observable ( initializer ( ) , annotations , { autoBind : true } ) ) [ 0 ] ; }