public function setupAdmin() {

		add_action('admin_enqueue_scripts', function() {
			wp_enqueue_script('wp-util');
			wp_enqueue_style('ilab-media-upload-css', ILAB_PUB_CSS_URL.'/ilab-media-upload.min.css');
			wp_enqueue_script('ilab-media-upload-js', ILAB_PUB_JS_URL.'/ilab-media-upload.js', [
				'jquery',
				'wp-util'
			], false, true);
		});

		$this->client->enqueueUploaderScripts();

		add_action('admin_menu', function() {
			if(current_user_can('upload_files')) {
				if($this->enabled()) {
					add_media_page('Cloud Upload', 'Cloud Upload', 'upload_files', 'media-cloud-upload', [
						$this,
						'renderSettings'
					]);
				}
			}
		});

		add_filter('media_upload_tabs', function($tabs) {
			if(current_user_can('upload_files')) {
				$tabs = array_merge(['ilab_cloud_upload' => 'Cloud Upload'], $tabs);
			}

			return $tabs;
		});

		add_action('media_upload_ilab_cloud_upload', function() {
			wp_iframe([$this, 'renderInsertSettings']);
		});
	}