mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-25 22:09:36 +02:00
9 lines
244 B
TypeScript
9 lines
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;
|
||
|
}
|