started on icons
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import bridgeIcon from "@iconify-icons/mdi/bridge";
|
||||
import hexagonIcon from "@iconify-icons/mdi/hexagon";
|
||||
import lightBulbIcon from "@iconify-icons/mdi/lightbulb";
|
||||
import lightBulbGroupIcon from "@iconify-icons/mdi/lightbulb-group";
|
||||
import squareIcon from "@iconify-icons/mdi/square-rounded";
|
||||
|
||||
// To add a new icon, follow the instructions on this page:
|
||||
// https://iconify.design/icon-sets/mdi/
|
||||
|
||||
export enum LuciferIcon {
|
||||
Bridge = "Bridge",
|
||||
Bulb = "Bulb",
|
||||
BulbGroup = "BulbGroup",
|
||||
Hexagon = "Hexagon",
|
||||
Square = "Square",
|
||||
}
|
||||
|
||||
const iconMap = {
|
||||
[LuciferIcon.Bridge]: bridgeIcon,
|
||||
[LuciferIcon.Bulb]: lightBulbIcon,
|
||||
[LuciferIcon.BulbGroup]: lightBulbGroupIcon,
|
||||
[LuciferIcon.Hexagon]: hexagonIcon,
|
||||
[LuciferIcon.Square]: squareIcon,
|
||||
}
|
||||
|
||||
export function toIconify(icon: LuciferIcon): object {
|
||||
return iconMap[icon];
|
||||
}
|
||||
Reference in New Issue
Block a user