pub fn Page(ctx: zx.PageContext) !zx.Component {
    const query = ctx.request.searchParams;

    if (query.get("reset")) |_|
        count = 0
    else if (query.get("increment")) |_|
        count += 1
    else if (query.get("decrement")) |_|
        count -= 1
    else
        count += 1;

    return (
        <main @allocator={ctx.arena}>
            <p>Ziex is a framework for building web applications with Zig.</p>
            <a href={zx.info.homepage} target="_blank">See Ziex Docs →</a>
            <br />
            <CounterComponent @rendering={.client} count={count} />
            <br />
            <hr />
            <div class="link-row">
                <a href="/form">Server State</a>
                <a href="/actions">Server Action</a>
                <a href="/actions/client">Client Action</a>
                <a href="/actions/server">Server Event</a>
            </div>
        </main>
    );
}
var count: i128 = 0;

const zx = @import("zx");
pub const CounterComponent = @import("./client.zig").CounterComponent;
