# `MishkaCmsCoreWeb.Live.Admin.Components.UserDetailsModal`
[🔗](https://github.com/mishka-group/mishka_cms_core/blob/v0.0.1/lib/mishka_cms_core_web/live/admin/components/user_details_modal.ex#L5)

User record modal: a read-only **view** of a user (id, email, site, confirmation status, permissions)
that flips to the editable `MishkaGervaz.Form.Web.Live` user form via the **Edit User** button, and
hosts the create form when opened with no record (the "+ Add User" flow).

Shares the modal shell + card helpers with the runtime preview / site modals through
`MishkaCmsCoreWeb.Live.Admin.Components.DetailModal` (used here without a tab bar — `tabs={[]}`). Driven
by the parent's `@user_modal` map (`record`, `edit_mode?`, `loading?`, `form_record_id`); the form's
`record_id` flows through the template (NOT `send_update`) so a parent re-render can't reset it, and the
form stays mounted across the view/edit toggle. See the parent
`MishkaCmsCoreWeb.Live.Admin.Dashboard.Account.User.Index`.

# `modal`

## Attributes

* `user_modal` (`:map`) (required)
* `current_user` (`:any`) - Defaults to `nil`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
