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

A Redraw share cards button: after a confirmation, every share card of a site — or of every
active site — is drawn again over its old file in the background
(`MishkaCmsCore.Runtime.ShareCard.redraw_all/2` with `force: true`), one at a time on the
`:share_cards` queue, and the button says how many cards were queued once the planner has
collected them.

The settings page's SEO tab draws one for every producer together and one for each producer
that answers `MishkaCmsCore.Runtime.ShareCard.targets_event/0` on the site; an extension's
"on this site" modal draws one for its own (`MishkaCmsCoreWeb.Live.Admin.Components.ExtensionInstallerPanel.doctor_modal/1`).

Assigns:

  * `:id`
  * `:site_id` — the site, or `nil` for every active site
  * `:producer` — the one producer to redraw, `"mishka_blog"`; `nil` for every one
  * `:allowed?` — whether the viewer may redraw them; the parent decides, the button refuses
    without it
  * `:title`, `:blurb`, `:action` — what the row says, and the button
  * `:wait` — how many milliseconds the count is waited for, 60 000 by default

---

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