pub fn Conditional(allocator: zx.Allocator) zx.Component {
    const is_admin = true;
    const is_logged_in = false;

    return (
        <main @allocator={allocator}>
            <section>
                {if (is_admin) (<p>Admin</p>) else (<p>User</p>)}
            </section>
            <section>
                {if (is_admin) ("Powerful") else ("Powerless")}
            </section>
            <section>
                {if (is_logged_in) (
                    <p>Welcome, User!</p>
                ) else (
                    <p>Please log in to continue.</p>
                )}
            </section>
        </main>
    );
}

const zx = @import("zx");
