<?php

namespace Dev4Press\Plugin\coreSocial\Admin\Panel;

use Dev4Press\Plugin\coreSocial\Admin\Panel;
use Dev4Press\Plugin\coreSocial\Table\Items as ItemsTable;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Items extends Panel {
	protected bool $table = true;
	protected bool $form = true;
	protected bool $sidebar = false;
	protected string $form_method = 'get';

	public function screen_options_show() : void {
		$args = array(
			'label'   => __( 'Rows', 'coresocial' ),
			'default' => 20,
			'option'  => 'coresocial_items_rows_per_page',
		);

		add_screen_option( 'per_page', $args );

		new ItemsTable();
	}
}
