<?php
namespace Bookly\Backend\Components\Dialogs\SmtpTest;

use Bookly\Lib;

class Dialog extends Lib\Base\Component
{
    /**
     * Render create service dialog.
     */
    public static function render()
    {
        self::enqueueScripts( array(
            'module' => array( 'js/smtp-test-dialog.js' => array( 'bookly-backend-globals' ) ),
        ) );

        wp_localize_script( 'bookly-smtp-test-dialog.js', 'BooklySmtpTestDialogL10n', array(
            'success' => __( 'Success', 'bookly-responsive-appointment-booking-tool' ),
            'failed' => __( 'Failed', 'bookly-responsive-appointment-booking-tool' ),
        ) );

        self::renderTemplate( 'dialog' );
    }
}