How to create submission confirmation modal in admin panel like requireConfirmation in delete action

I tried to do that way but I just got a notification
protected function beforeCreate(): void
    {
        Notification::make()
            ->title('Saved successfully')
            ->success()
            ->body('Changes to the post have been saved.')
            ->actions([
                Action::make('view')
                    ->button(),
                Action::make('undo')
                    ->color('gray')
                ])
            ->send();
        $this->halt();
    }
Was this page helpful?