public function testAction(): Action
{
return Action::make('test')
->requiresConfirmation()
->action(function (array $arguments) {
dd('Test action called', $arguments);
});
}PhoneInput::make('telephone')
->label('Phone')
->required()
->helperText(function () {
return view('forms.components.duplicate-hint' );
})
->live(),
@if(isset($duplicates) && $duplicates->isNotEmpty())
<div>
<button wire:click="mountAction('test', { id: 12345 })" style="color:red; text-decoration: underline;">
Duplicate(s) found!
</button>
</div>
<x-filament-actions::modals />
@endif