<?php

declare(strict_types=1);

namespace CpCreation\VitiCore\PageBuilder\Block\Type;

use CpCreation\VitiCore\PageBuilder\Block\BlockTypeInterface;
use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;

#[AutoconfigureTag('viti-core.page_builder.block_type')]
final class QuoteBlockType implements BlockTypeInterface
{
    public const CODE = 'quote';

    public function getCode(): string
    {
        return self::CODE;
    }

    public function getLabel(): string
    {
        return 'Citation';
    }

    public function getInlineEditableFields(): array
    {
        return ['body', 'quoteSource', 'quoteRole'];
    }

    public function getSidebarEditableFields(): array
    {
        return ['settings.alignment', 'settings.tone'];
    }

    public function getDefaultSettings(): array
    {
        return [
            'alignment' => 'center',
            'tone' => 'soft',
        ];
    }
}
