<?php
declare(strict_types=1);

namespace PpPhp\Core\Designer\Dashboard;

final class DesignerDashboardActivityFeed extends DesignerDashboardWidget
{
    public static function feed(string $id, string $title = 'Recent Activity', int $span = 6, array $items = []): self
    {
        return new self($id, 'activity_feed', $title, [
            'items' => $items,
            'emptyText' => 'No recent activity',
        ], $span);
    }
}
