<?php

namespace App\View\Components;

use Illuminate\View\Component;

class Page extends Component
{
    public ?string $heading;

    public ?string $action;

    public ?string $header;

    public ?string $footer;

    final public function __construct(
        ?string $heading = null,
        ?string $action = null,
        ?string $header = null,
        ?string $footer = null,
    )
    {
        $this->heading       = $heading;
        $this->action      = $action;
        $this->header      = $header;
        $this->footer      = $footer;
    }

    public function render()
    {
        return view('components.page');
    }
}
