<?php

declare(strict_types=1);

namespace App\Modules\Content\Controllers;

use App\Modules\Content\Application\ContentService;

class ContentController
{
    public function __construct(private readonly ContentService $contentService)
    {
    }

    public function index(string $tenantId): array
    {
        return [
            'view' => 'content.index',
            'data' => [
                'title' => 'Content',
                'content' => $this->contentService->publicOverview($tenantId),
            ],
        ];
    }

    public function editor(string $tenantId): array
    {
        return [
            'view' => 'content.editor',
            'data' => [
                'title' => 'Content-Redaktion',
                'editorial' => $this->contentService->editorialOverview($tenantId),
            ],
        ];
    }
}
