# `Tayori.Announcements`
[🔗](https://github.com/hattoriai/tayori/blob/v0.1.0/lib/tayori/announcements.ex#L1)

An entry announced in the app, as a popup, a toast or a banner, until
its date (`Tayori.Entry`'s `:announce`): the `:announcements` feature.

A reader sees one announcement at a time, the newest they can see and
have not dismissed. A visitor sees it until the page closes it.

# `current`

```elixir
@spec current(Tayori.Reader.t(), keyword()) :: Tayori.Entry.t() | nil
```

The announcement the reader sees now, with its translation, or nil.
Always nil when the `:announcements` feature is off.

# `dismiss`

```elixir
@spec dismiss(Tayori.Reader.t(), Ecto.UUID.t()) :: :ok
```

Dismisses an announcement for the reader, on every device. Does nothing
for a visitor.

---

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