mirror of
https://github.com/ziex-dev/ziex.git
synced 2026-07-22 11:39:34 -06:00
32 lines
681 B
Zig
32 lines
681 B
Zig
pub fn Page(allocator: zx.Allocator) zx.Component {
|
|
var _zx = @import("zx").allocInit(allocator);
|
|
return _zx.ele(
|
|
.main,
|
|
.{
|
|
.allocator = allocator,
|
|
.children = &.{
|
|
_zx.cmp(
|
|
None,
|
|
.{},
|
|
.{},
|
|
),
|
|
_zx.cmp(
|
|
Null,
|
|
.{},
|
|
.{},
|
|
),
|
|
},
|
|
},
|
|
);
|
|
}
|
|
|
|
pub fn None(_: *zx.ComponentContext) ?zx.Component {
|
|
if (true) return .none;
|
|
}
|
|
|
|
pub fn Null(_: *zx.ComponentContext) ?zx.Component {
|
|
if (true) return null;
|
|
}
|
|
|
|
const zx = @import("zx");
|