<?php

declare(strict_types=1);

namespace CpCreation\VitiCore\PageBuilder\Rendering;

use CpCreation\VitiCore\PageBuilder\Model\Page;

final readonly class PageRender
{
    /**
     * @param list<PageSectionRender>                 $sections
     * @param array<string, list<PageSectionRender>>  $zones
     * @param array<string, string|bool|null>         $toolbar
     * @param array<string, string>                   $builderMount
     * @param array<string, mixed>                    $pageConfig
     */
    public function __construct(
        public Page $page,
        public string $template,
        public string $mode,
        public bool $editMode,
        public bool $builderMode,
        public bool $frontEditAccess,
        public bool $frontBuilderAccess,
        public array $sections,
        public array $zones,
        public array $toolbar,
        public array $builderMount,
        public array $pageConfig,
    ) {
    }
}
