<?php

declare(strict_types=1);

namespace App\Filament\Widgets\Workspace;

use Filament\Widgets\Widget;

class WorkspaceNeedsAttention extends Widget
{
    protected static bool $isLazy = false;

    protected int|string|array $columnSpan = 'full';

    protected string $view = 'filament.widgets.workspace.workspace-needs-attention';

    /**
     * @var array<int, array{
     *     title: string,
     *     body: string,
     *     url: string,
     *     badge: string,
     *     badge_color: string
     * }>
     */
    public array $items = [];

    /**
     * @var array{
     *     title: string,
     *     body: string,
     *     action_label: string,
     *     action_url: string
     * }
     */
    public array $emptyState = [];

    /**
     * @param  array<int, array{
     *     title: string,
     *     body: string,
     *     url: string,
     *     badge: string,
     *     badge_color: string
     * }>  $items
     * @param  array{
     *     title: string,
     *     body: string,
     *     action_label: string,
     *     action_url: string
     * }  $emptyState
     */
    public function mount(array $items = [], array $emptyState = []): void
    {
        $this->items = $items;
        $this->emptyState = $emptyState;
    }
}
