You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mod.rs
    path of file: ./repos/Ambient/crates/editor/src/ui
    
    the code of the file until where you have to start completion: use std::{collections::HashMap, fmt::Debug, io::Cursor};

mod build_mode;
pub mod entity_editor;
mod terrain_mode;

use ambient_core::{game_mode, runtime, transform::translation, GameMode};
use ambient_ecs::{Entity, EntityId};
use ambient_element::{
    consume_context, element_component, provide_context, use_effect, use_interval, use_state,
    Element, ElementComponent, ElementComponentExt, Group, Hooks, Setter,
};
use ambient_intent::{rpc_redo, rpc_undo_head, IntentHistoryVisualizer};
use ambient_native_std::{cb, color::Color, Cb};
use ambient_naturals::{get_default_natural_layers, natural_layers, NaturalsPreset};
use ambient_network::{
    client::ClientState,
    hooks::{use_remote_persisted_resource, use_remote_player_component},
    log_network_result,
    rp
    
    fn render(self: Box<Self>, _hooks: &mut Hooks) -> Element {
        let Self { value, on_change } = *self;
        FlowRow(vec![
            Button::new("Copy", move |_| {
                ambient_sys::clipboard::set_background(
                    serde_json::to_string_pretty(&value).ok().unwrap(),
                    |res| {
                        if let Err(err) = res {
                            tracing::error!("Failed to write to clipboard {err:?}");
                        }
                    },
                );
            })
            .el(),
            Button::new("Paste", move |_| {
                let on_change = on_change.clone();

                ambient_sys::clipboard::get_background(move |res| {
                    if let Some(res) = res {
                        on_change(serde_json::from_str(&res).unwrap());
                    }
                });
            })
            .el(),
        ])
        .el()
        .with(space_between_items(), STREET)
    }