pub fn Page(allocator: zx.Allocator) zx.Component {
    const is_logged_in = false;
    var _zx = @import("zx").allocInit(allocator);
    return _zx.ele(
        .main,
        .{
            .allocator = allocator,
            .children = &.{
                if (is_logged_in) _zx.ele(
                    .div,
                    .{
                        .children = &.{
                            _zx.ele(
                                .p,
                                .{
                                    .children = &.{
                                        _zx.txt("Welcome, User"),
                                    },
                                },
                            ),
                        },
                    },
                ) else _zx.ele(
                    .div,
                    .{
                        .children = &.{
                            _zx.ele(
                                .p,
                                .{
                                    .children = &.{
                                        _zx.txt("Please log in to continue."),
                                    },
                                },
                            ),
                        },
                    },
                ),
            },
        },
    );
}

const zx = @import("zx");
