mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 09:42:55 +00:00
12 lines
464 B
JavaScript
12 lines
464 B
JavaScript
import { useEffect, memo } from 'react';
|
|
import { useAppDispatch } from './hooks';
|
|
import { setEventSettings } from './eventSettingsSlice';
|
|
import { propsAreEqual } from '../util/propsAreEqual';
|
|
var ReportEventSettingsImpl = props => {
|
|
var dispatch = useAppDispatch();
|
|
useEffect(() => {
|
|
dispatch(setEventSettings(props));
|
|
}, [dispatch, props]);
|
|
return null;
|
|
};
|
|
export var ReportEventSettings = /*#__PURE__*/memo(ReportEventSettingsImpl, propsAreEqual); |