diff --git a/src/app/header.rs b/src/app/header.rs
index 027c869..c9f07e0 100644
--- a/src/app/header.rs
+++ b/src/app/header.rs
@@ -1,11 +1,13 @@
use istyles::istyles;
-use leptos::{prelude::*, tachys::html};
+use leptos::{html::Input, prelude::*, tachys::html};
use reactive_stores::Store;
-use web_sys::{Url, UrlSearchParams};
+use wasm_bindgen::{JsCast, prelude::Closure};
+use web_sys::{Event, FileReader, HtmlInputElement, Url, UrlSearchParams};
use crate::{
- PrepareOptions, WorkerRequest,
+ FragileComfirmed, LoadDbOptions, PrepareOptions, SQLightError, WorkerRequest,
app::{
+ ImportProgress, Vfs,
advanced_options_menu::AdvancedOptionsMenu,
button_set::{Button, ButtonSet, IconButton, Rule},
config_menu::ConfigMenu,
@@ -24,6 +26,8 @@ istyles!(styles, "assets/module.postcss/header.module.css.map");
pub fn Header() -> impl IntoView {
let menu_container = NodeRef::new();
+ let input_ref = NodeRef::new();
+
view! {
<>
+
+
+
+
@@ -99,6 +107,108 @@ fn ExecuteButton() -> impl IntoView {
}
}
+#[component]
+fn LoadButton(input_ref: NodeRef
) -> impl IntoView {
+ let state = expect_context::
>();
+
+ let (file, set_file) = signal::