|
| 1 | +// benefit |
| 2 | +import DollarImage from '../../../../public/images/benefit/dollar.svg' |
| 3 | +import EnvelopeImage from '../../../../public/images/benefit/envelope.svg' |
| 4 | +import GualityImage from '../../../../public/images/benefit/guality.svg' |
| 5 | +import ModulesImage from '../../../../public/images/benefit/modules.svg' |
| 6 | +import ToolImage from '../../../../public/images/benefit/tool.svg' |
| 7 | +import VectorImage from '../../../../public/images/benefit/vector.svg' |
| 8 | + |
| 9 | +// common |
| 10 | +import CloseImage from '../../../../public/images/common/close.svg' |
| 11 | +import DomainImage from '../../../../public/images/common/domain.svg' |
| 12 | +import GamepadImage from '../../../../public/images/common/gamepad.svg' |
| 13 | +import GraphicsImage from '../../../../public/images/common/graphics.svg' |
| 14 | + |
| 15 | +import HouseImage from '../../../../public/images/common/house.svg' |
| 16 | +import MotherboardImage from '../../../../public/images/common/motherboard.svg' |
| 17 | +import ProcessorImage from '../../../../public/images/common/processor.svg' |
| 18 | +import RamImage from '../../../../public/images/common/ram.svg' |
| 19 | +import StarImage from '../../../../public/images/common/star.svg' |
| 20 | +import VideocardImage from '../../../../public/images/common/videocard.svg' |
| 21 | +import WorkImage from '../../../../public/images/common/work.svg' |
| 22 | + |
| 23 | +// navLinks |
| 24 | +import CallImage from '../../../../public/images/navLinks/call.svg' |
| 25 | +import CatalogImage from '../../../../public/images/navLinks/catalog.svg' |
| 26 | +import DeliveryImage from '../../../../public/images/navLinks/delivery.svg' |
| 27 | +import HomeImage from '../../../../public/images/navLinks/home.svg' |
| 28 | + |
| 29 | +// social |
| 30 | +import FacebookImage from '../../../../public/images/social/facebook.svg' |
| 31 | +import GithubImage from '../../../../public/images/social/github.svg' |
| 32 | +import TelegramImage from '../../../../public/images/social/telegram.svg' |
| 33 | +import TwitterImage from '../../../../public/images/social/twitter.svg' |
| 34 | +import VKImage from '../../../../public/images/social/vkontakte.svg' |
| 35 | + |
| 36 | +import { Icons } from './Icon.types' |
| 37 | + |
| 38 | +export const ICONS: Record<Icons | string, string> = { |
| 39 | + [Icons.telegram]: TelegramImage, |
| 40 | + [Icons.facebook]: FacebookImage, |
| 41 | + [Icons.vkontakte]: VKImage, |
| 42 | + [Icons.twitter]: TwitterImage, |
| 43 | + [Icons.github]: GithubImage, |
| 44 | + // common |
| 45 | + [Icons.gamepad]: GamepadImage, |
| 46 | + [Icons.work]: WorkImage, |
| 47 | + [Icons.house]: HouseImage, |
| 48 | + [Icons.star]: StarImage, |
| 49 | + [Icons.domain]: DomainImage, |
| 50 | + [Icons.graphics]: GraphicsImage, |
| 51 | + // details |
| 52 | + [Icons.processor]: ProcessorImage, |
| 53 | + [Icons.motherboard]: MotherboardImage, |
| 54 | + [Icons.videocard]: VideocardImage, |
| 55 | + [Icons.ram]: RamImage, |
| 56 | + [Icons.close]: CloseImage, |
| 57 | + // navLinks |
| 58 | + [Icons.call]: CallImage, |
| 59 | + [Icons.catalog]: CatalogImage, |
| 60 | + [Icons.delivery]: DeliveryImage, |
| 61 | + [Icons.home]: HomeImage, |
| 62 | + // benefit |
| 63 | + [Icons.dollar]: DollarImage, |
| 64 | + [Icons.guality]: GualityImage, |
| 65 | + [Icons.tool]: ToolImage, |
| 66 | + [Icons.modules]: ModulesImage, |
| 67 | + [Icons.vector]: VectorImage, |
| 68 | + [Icons.envelope]: EnvelopeImage |
| 69 | +} |
| 70 | + |
| 71 | +export const getIcon = (name: Icons | string) => { |
| 72 | + return ICONS[name] |
| 73 | +} |
0 commit comments