16 lines
337 B
JavaScript
16 lines
337 B
JavaScript
/** @format */
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import { getResourceName } from '../utils';
|
|
|
|
const updateOptions = operations => options => {
|
|
const resourceName = getResourceName( 'options-update', Object.keys( options ) );
|
|
operations.update( [ resourceName ], { [ resourceName ]: options } );
|
|
};
|
|
|
|
export default {
|
|
updateOptions,
|
|
};
|