<?php

namespace PrestaShop\Module\PolarisPrestaTheme\Forms;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\TextType;

class MenuCustomType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $builder
            ->add('label', TextType::class, [
                'label'      => 'Texte du lien',
                'required'   => false,
                'empty_data' => '',
                'attr'       => ['placeholder' => 'Titre personnalisé'],
            ])
            ->add('url', TextType::class, [
                'label'      => 'URL',
                'required'   => false,
                'empty_data' => '',
                'attr'       => ['placeholder' => 'https://...'],
            ]);
    }
}