import { TableSettingButtonSlimmer } from './table-setting-button-slimmer.abstract';
import { TableSettingType } from '../../../setting-event-handlers/setting-event-handler.abstract';
/**
 * Slimmer dedicated to building the merge cells button.
 */
export class CellPropertiesButtonSlimmer extends TableSettingButtonSlimmer {
  constructor() {
    super({
      icon: 'rte-table-cell-properties',
      title: 'cell properties',
      showArrowIcon: false,
    });
  }
  renderBtnWrapper(renderBtn) {
    return renderBtn();
  }
  isSelected() {
    return false;
  }
  isDisabled() {
    return this.selectedCells.length === 0;
  }
  handleClick() {
    this.emitClickEvent([TableSettingType.CELL]);
  }
}
