<?php
declare(strict_types=1);

namespace AuraBuilder\Widgets\Basic;

use AuraBuilder\Document\Node;
use AuraBuilder\Widgets\WidgetBase;

final class DividerWidget extends WidgetBase {

	public function get_type(): string {
		return 'divider';
	}

	public function get_title(): string {
		return 'Divisor';
	}

	public function get_category(): string {
		return 'layout';
	}

	public function get_icon(): string {
		return 'minus';
	}

	public function get_defaults(): array {
		return array();
	}

	public function sanitize_settings( array $settings ): array {
		return array();
	}

	public function render( Node $node, array $context = array() ): string {
		return '<hr class="ab-divider"/>';
	}
}
