<?php

namespace KupShop\ComponentsBundle\Twig\Components\Product;

use KupShop\ComponentsBundle\Attributes\Component;
use KupShop\ComponentsBundle\Attributes\Version;
use KupShop\ComponentsBundle\Twig\BaseComponent;
use KupShop\ComponentsBundle\Twig\DataProvider\ProductDataTrait;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;

#[AsTwigComponent(template: '@Components/components/Product/Annotation/Annotation.1.html.twig')]
#[Component(1, [
    new Version(1, newJs: null),
])]
class Annotation extends BaseComponent
{
    use ProductDataTrait;

    public function getAnnotation(): string
    {
        return $this->provider->getAnnotation($this->product->id);
    }
}
