<?php

namespace App\Filament\Concerns;

use App\Services\Dashboard\DashboardFilterBag;
use Filament\Widgets\Concerns\InteractsWithPageFilters;

trait InteractsWithDashboardFilters
{
    use InteractsWithPageFilters;

    protected function filters(): DashboardFilterBag
    {
        return DashboardFilterBag::from($this->filters);
    }
}
