icons.js in Extendify 3.1.6, at src/Notifications/icons.js
| 1 | import { |
| 2 | bell, |
| 3 | box, |
| 4 | calendar, |
| 5 | caution, |
| 6 | check, |
| 7 | cog, |
| 8 | dashboard, |
| 9 | error, |
| 10 | gift, |
| 11 | globe, |
| 12 | help, |
| 13 | info, |
| 14 | key, |
| 15 | lock, |
| 16 | mapMarker, |
| 17 | notAllowed, |
| 18 | payment, |
| 19 | plusCircle, |
| 20 | published, |
| 21 | receipt, |
| 22 | scheduled, |
| 23 | starFilled, |
| 24 | tag, |
| 25 | tool, |
| 26 | trendingUp, |
| 27 | } from '@wordpress/icons'; |
| 28 | |
| 29 | const ICONS = { |
| 30 | bell, |
| 31 | box, |
| 32 | calendar, |
| 33 | caution, |
| 34 | check, |
| 35 | cog, |
| 36 | dashboard, |
| 37 | error, |
| 38 | gift, |
| 39 | globe, |
| 40 | help, |
| 41 | info, |
| 42 | key, |
| 43 | lock, |
| 44 | mapMarker, |
| 45 | notAllowed, |
| 46 | payment, |
| 47 | plusCircle, |
| 48 | published, |
| 49 | receipt, |
| 50 | scheduled, |
| 51 | starFilled, |
| 52 | tag, |
| 53 | tool, |
| 54 | trendingUp, |
| 55 | }; |
| 56 | |
| 57 | // An unbundled name renders nothing rather than a broken glyph. |
| 58 | export const iconFor = (name) => ICONS[name] ?? null; |
| 59 |