<?php

namespace KupShop\ComponentsBundle\Twig\Components\Switcher;

use KupShop\ComponentsBundle\Attributes\Component;
use KupShop\ComponentsBundle\Attributes\Version;
use KupShop\I18nBundle\Entity\Language;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;

#[AsTwigComponent(template: '@Components/components/Switcher/LanguageInline/LanguageInline.1.html.twig')]
#[Component(1, [
    new Version(1, newJs: null),
])]
class LanguageInline extends \KupShop\ComponentsBundle\Twig\Components\Switcher\Language
{
    public ?string $text = null;
    public bool $show_flag = true;

    public function getActiveLanguage(): Language
    {
        return $this->languageContext->getActive();
    }
}
