<?php


namespace ModulesGarden\Servers\ProxmoxCloudVps\App\UI\Home\Pages;

use ModulesGarden\ProxmoxAddon\App\Services\Cloud\UserService;
use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Builder\BaseContainer;
use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\AdminArea;
use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\ClientArea;
use function ModulesGarden\Servers\ProxmoxCloudVps\Core\Helper\sl;

class ErrorContainer extends BaseContainer implements ClientArea, AdminArea
{

    use UserService;

    public function initContent()
    {
        if (!$this->isUser())
        {
            $this->customTplVars['warning'] = sl("lang")->abtr('User account does not exist. Please, create an account firstly.');
        }
    }

}