-
-
Save mateusz-wierzbicki/5817c62f06e1f0115c48baac823e66e1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import IconMap from './iconMap'; | |
| const CustomIcon = ({ type }) => { | |
| // Ensure type uses the correct icon name format | |
| const iconName = `Icon${type.charAt(0).toUpperCase()}${type.slice(1)}`; | |
| return IconMap[iconName] || null; | |
| }; | |
| export default CustomIcon; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment