diff options
Diffstat (limited to 'src/app/components/icons/root.zig')
| -rw-r--r-- | src/app/components/icons/root.zig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/app/components/icons/root.zig b/src/app/components/icons/root.zig new file mode 100644 index 0000000..0328472 --- /dev/null +++ b/src/app/components/icons/root.zig @@ -0,0 +1,17 @@ +const zilch = @import("zilch"); + +pub const icons: []const zilch.Component = &.{ + icon("menu"), + icon("upload"), + icon("settings"), +}; + +pub fn icon(name: []const u8) zilch.Component { + return .build(.{ + .namespace = "icon", + .name = name, + .html = .parse(@embedFile(name ++ ".svg")), + .css = @embedFile("index.css"), + .link = struct {}, + }); +} |