function activatePlugin( basename ) {
	return wp.ajax.post( 'simplestats_activate_plugin', {
		_ajax_nonce: SimpleStatsVue.pluginNonce,
		plugin: basename,
	} );
}

function installPlugin( slug ) {
	return wp.ajax.post( 'simplestats_install_plugin', {
		_ajax_nonce: SimpleStatsVue.pluginNonce,
		slug: slug,
	} );
}

export default {
	activatePlugin,
	installPlugin,
};
