| 1 |
import { Block } from '@launch/components/QuestionIcon/Icons/block'; |
| 2 |
import { Booking } from '@launch/components/QuestionIcon/Icons/booking'; |
| 3 |
import { Distance } from '@launch/components/QuestionIcon/Icons/distance'; |
| 4 |
import { Donation } from '@launch/components/QuestionIcon/Icons/donation'; |
| 5 |
import { Events } from '@launch/components/QuestionIcon/Icons/events'; |
| 6 |
import { ExternalLink } from '@launch/components/QuestionIcon/Icons/external-link'; |
| 7 |
import { Language } from '@launch/components/QuestionIcon/Icons/language'; |
| 8 |
import { LongPage } from '@launch/components/QuestionIcon/Icons/long-page'; |
| 9 |
import { Newsmode } from '@launch/components/QuestionIcon/Icons/newsmode'; |
| 10 |
import { Pages } from '@launch/components/QuestionIcon/Icons/pages'; |
| 11 |
import { Phone } from '@launch/components/QuestionIcon/Icons/phone'; |
| 12 |
import { ShoppingCart } from '@launch/components/QuestionIcon/Icons/shopping-cart'; |
| 13 |
import { Storefront } from '@launch/components/QuestionIcon/Icons/storefront'; |
| 14 |
|
| 15 |
const ICONS_MAP = { |
| 16 |
'long-page': LongPage, |
| 17 |
block: Block, |
| 18 |
pages: Pages, |
| 19 |
'external-link': ExternalLink, |
| 20 |
phone: Phone, |
| 21 |
'shopping-cart': ShoppingCart, |
| 22 |
storefront: Storefront, |
| 23 |
booking: Booking, |
| 24 |
events: Events, |
| 25 |
donation: Donation, |
| 26 |
newsmode: Newsmode, |
| 27 |
distance: Distance, |
| 28 |
language: Language, |
| 29 |
}; |
| 30 |
|
| 31 |
export const Icon = ({ id }) => { |
| 32 |
const IconComponent = ICONS_MAP?.[id]; |
| 33 |
return IconComponent ? <IconComponent /> : null; |
| 34 |
}; |
| 35 |
|