Action::make('Profile')
->modalHeading('') // removes close button
->modalContent(fn (Person $record): View => view(
'components.person-profile',
[
'person' => $record,
],
)),x-on:click=“close()” and it should work the same.