use crate::components::{FileDrop, Header, Loading}; use crate::pages::api::files::list_files; use leptos::prelude::*; use leptos_oidc::AuthSignal; #[component] pub fn StudentFinancialPage() -> impl IntoView { // This is where we'll get information about the files that have been uploaded. // For now, we'll leave it blank. let auth = expect_context::(); let files_resource = Resource::new( move || { auth.try_with(|a| a.authenticated().map(|a| a.access_token())) .flatten() }, async move |access_token| { list_files( access_token.unwrap_or_default(), "financial_info".to_string(), "fafsa".to_string(), ) .await }, ); view! {
} }