<?php

declare(strict_types=1);

namespace KupShop\ComponentsBundle\Twig\Components\Home;

use KupShop\ComponentsBundle\Attributes\Component;
use KupShop\ComponentsBundle\Attributes\Version;
use KupShop\ComponentsBundle\GTM\PostMount\GTMViewData;
use KupShop\ComponentsBundle\Twig\BaseComponent;
use KupShop\GTMBundle\PageType\HomePageType;
use Symfony\Contracts\Service\Attribute\Required;
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;

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

    protected bool $isBaseView = true;

    #[Required]
    public HomePageType $gtmClass;

    public function getGTMPlaceholders(): array
    {
        return ['item_list_name' => 'homepage: /', 'item_list_id' => ''];
    }
}
