<?php

declare(strict_types=1);

namespace Numinix\SeekmodoWordPress\Elementor\Widgets;

if (!class_exists(\Elementor\Widget_Base::class)) {
    return;
}

final class SearchWidget extends AbstractSeekmodoWidget
{
    public function get_name()
    {
        return 'seekmodo-search';
    }

    public function get_title()
    {
        return function_exists('esc_html__')
            ? esc_html__('Seekmodo Search Box', 'seekmodo')
            : 'Seekmodo Search Box';
    }

    public function get_icon()
    {
        return 'eicon-search';
    }

    protected function elementSlug(): string
    {
        return 'search';
    }
}
