<?php
declare(strict_types=1);

namespace WP_AUX\Entities\AuxCF\Fields\SidebarComponents\IconList;

use AuxCF\Entities\Field\TrueFalseFieldEntity;
use AuxCF\Entities\Settings\Enum\IntSwitchEnum;
use AuxCF\Entities\Settings\Enum\OperatorEnum;
use WP_AUX\Entities\AuxCF\Fields\CustomContent\CustomContentSidebarSelectFieldEntity;
use WP_AUX\Enum\SidebarComponentEnum;

class SidebarIconListDescriptionSwitchFieldEntity extends TrueFalseFieldEntity
{
  public static string $name = 'sidebar_icon_list_desc_switch';
  protected string $label = 'Include Description';
  protected string $instructions = 'Do you want to add a description below the list item?';
  protected IntSwitchEnum $ui = IntSwitchEnum::On;

  protected array $initConditionalLogic = [
    [
      [ CustomContentSidebarSelectFieldEntity::class, OperatorEnum::EQUALS, SidebarComponentEnum::IconList ],
    ]
  ];

}
