# Reactions::icon_fields()

Icon fields shared by every reaction row: emoji, optional image and the `hide_*` flags the Interactivity bindings read.

```php
icon_fields( array $def ): array
```

## Parameters

- `$def` (array<string, mixed>) Reaction definition (`emoji`, optional `icon_url`).

## Return

`array{emoji: string, icon_url: string, hide_icon: bool, hide_emoji: bool}` 

## Changelog

| Version | Description |
| --- | --- |
| 1.6.2 | Introduced |
