<?php

namespace App\View\Components;

use Illuminate\View\Component;
use Illuminate\View\View;

class AppLayout extends Component
{
    /**
     * The page title.
     */
    public ?string $title;

    /**
     * The page header content.
     */
    public ?string $header;

    /**
     * Theme CSS variables for dynamic theming.
     */
    public ?array $themeCssVariables;

    /**
     * Create a new component instance.
     */
    public function __construct(
        ?string $title = null,
        ?string $header = null,
        ?array $themeCssVariables = null
    ) {
        $this->title = $title;
        $this->header = $header;
        $this->themeCssVariables = $themeCssVariables;
    }

    /**
     * Get the view / contents that represents the component.
     */
    public function render(): View
    {
        return view('layouts.app');
    }
}
