use leptos::prelude::*;
use leptos_meta::{Meta, Stylesheet, Title, provide_meta_context};
use leptos_router::{
ParamSegment, StaticSegment,
components::{Route, Router, Routes},
};
use pages::{AccountPage, BlockPage, MainPage, TransactionPage};
pub mod api;
mod components;
mod format_utils;
mod pages;
/// Main application component with routing setup.
///
/// # Routes
///
/// - `/` - Main page with search and recent blocks
/// - `/block/:id` - Block detail page (`:id` is the numeric block ID)
/// - `/transaction/:hash` - Transaction detail page (`:hash` is the hex-encoded transaction hash)
/// - `/account/:id` - Account detail page (`:id` is the hex-encoded account ID)
///
/// All other routes will show a 404 Not Found page.
#[component]
pub fn App() -> impl IntoView {
// Provides context that manages stylesheets, titles, meta tags, etc.
provide_meta_context();
view! {