aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/icons/root.zig
blob: 6f7ab4aada28f777d58faf5f51f932e829528c3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const zs = @import("zeroscript");

pub const icons: []const zs.Component = &.{
    icon("menu"),
    icon("upload"),
    icon("settings"),
};

pub fn icon(name: []const u8) zs.Component {
    return .{
        .namespace = "icon",
        .name = name,
        .html = .parse(@embedFile(name ++ ".svg")),
        .css = @embedFile("index.css"),
        .link = struct {},
    };
}