<?php

namespace KupShop\ComponentsBundle\Twig\Components\Switcher;

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

#[AsTwigComponent(template: '@Components/components/Switcher/CurrencyInline/CurrencyInline.1.html.twig')]
#[Component(1, [
    new Version(1, newJs: null),
])]
class CurrencyInline extends Currency
{
    public ?string $text = null;

    public function getActiveCurrency(): \KupShop\I18nBundle\Entity\Currency
    {
        return $this->currencyContext->getActive();
    }
}
