use yew::prelude::*; use wasm_bindgen::prelude::*; use self_components::{Registration, RegistrationConfig}; #[function_component(App)] fn app() -> Html { let registration_complete = Callback::from(|data: (String, String)| { let (email, public_key) = data; web_sys::console::log_1(&format!("Registration completed for {} with public key: {}", email, public_key).into()); }); let server_url = option_env!("SERVER_URL") .unwrap_or("http://localhost:8080") .to_string(); let config = RegistrationConfig { server_url, app_name: "Self-Sovereign Identity".to_string(), }; html! {

{"Self"}

{"Sovereign Entity Local Framework"}

} } #[wasm_bindgen::prelude::wasm_bindgen(start)] pub fn run_app() { yew::Renderer::::new().render(); }