<?php

declare(strict_types=1);

namespace Inpsyde\MultilingualPress\Module\ACF\TranslationUi\Post;

use Inpsyde\MultilingualPress\TranslationUi\Post;
use Inpsyde\MultilingualPress\TranslationUi\Post\MetaboxTab;

/**
 * MultilingualPress ACF Metabox Fields
 */
class MetaboxFields
{
    public const TAB = 'tab-custom-fields';
    public const FIELD_COPY_ACF_FIELDS = 'remote-acf-fields-copy';

    /**
     * Retrieve all fields for the ACF metabox tab.
     *
     * @return MetaboxTab[]
     */

    public function allFieldsTabs(): array
    {
        return [
            new MetaboxTab(
                MetaboxFields::TAB,
                _x('ACF', 'translation post metabox', 'multilingualpress'),
                new Post\MetaboxField(
                    MetaboxFields::FIELD_COPY_ACF_FIELDS,
                    new Field\CopyACFFields()
                )
            ),
        ];
    }
}
