mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 13:39:35 +02:00
9 lines
No EOL
244 B
TypeScript
9 lines
No EOL
244 B
TypeScript
export const iconParser = (mdiName: string): string => {
|
|
let parsedName = mdiName
|
|
.split('-')
|
|
.map((word: string) => `${word[0].toUpperCase()}${word.slice(1)}`)
|
|
.join('');
|
|
parsedName = `mdi${parsedName}`;
|
|
|
|
return parsedName;
|
|
} |