@livelike/react-native
Version:
LiveLike React Native package
12 lines • 495 B
JavaScript
import { textAskWidgetStore } from '../store';
import { useSelectedFieldStore } from './useSelectedFieldStore';
export function useTextAskInputText(_ref) {
let {
widgetId
} = _ref;
return useSelectedFieldStore(textAskWidgetStore, () => {
var _textAskWidgetStore$g;
return (_textAskWidgetStore$g = textAskWidgetStore.get()[widgetId]) === null || _textAskWidgetStore$g === void 0 ? void 0 : _textAskWidgetStore$g.inputText;
});
}
//# sourceMappingURL=useTextAskInputText.js.map