<?php

namespace Modules\Booking\Filament\Resources\Bookings\Actions;

use Filament\Actions\RestoreAction;

/**
 * Pairs with DeleteBookingTableAction — RestoreAction is already visible
 * only for trashed records out of the box; authorize('restore') layers
 * BookingPolicy::restore (manage_bookings) on top, enforced at call time
 * as well as driving visibility (Filament\Actions\Concerns\CanBeAuthorized).
 */
class RestoreBookingTableAction
{
    public static function make(): RestoreAction
    {
        return RestoreAction::make()
            ->authorize('restore');
    }
}
