UNPKG

@livelike/react-native

Version:

LiveLike React Native package

13 lines 536 B
import { widgetStore } from '../store'; import { useSelectedFieldStore } from './useSelectedFieldStore'; export function useWidgetInteractions(_ref) { let { widgetId } = _ref; const widgetInteractions = useSelectedFieldStore(widgetStore, () => { var _widgetStore$get$widg; return (_widgetStore$get$widg = widgetStore.get()[widgetId]) === null || _widgetStore$get$widg === void 0 ? void 0 : _widgetStore$get$widg.widgetInteractions; }); return widgetInteractions; } //# sourceMappingURL=useWidgetInteractions.js.map