@props([ 'actions', 'alignment' => null, 'record' => null, // 'wrap' => false, ]) @php use Filament\Support\Enums\Alignment; $actions = array_filter( $actions, function ($action) use ($record): bool { if (! $action instanceof \SolutionForest\FilamentTree\Actions\Modal\Action) { $action->record($record); } return $action->isVisible(); }, ); @endphp