PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / src / Launch / components / QuestionIcon / index.jsx

index.jsx in Extendify 3.1.5, at src/Launch/components/QuestionIcon/index.jsx

35 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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