<?php

namespace KupShop\GraphQLBundle\ApiPublic\Types\User;

use KupShop\KupShopBundle\Context\JsShopContext;
use KupShop\KupShopBundle\Util\Contexts;
use TheCodingMachine\GraphQLite\Annotations\Field;
use TheCodingMachine\GraphQLite\Annotations\Type;

#[Type]
class User extends \KupShop\GraphQLBundle\ApiShared\Types\User\User
{
    #[Field]
    public function getUserIconLabel(): ?string
    {
        return Contexts::get(JsShopContext::class)->getUserIconLabel();
    }
}
