// SPDX-FileCopyrightText: 2025 RAprogramm <andrey.rozanov.vl@gmail.com>
// SPDX-License-Identifier: MIT
pub use BottomButton;
use provide_context;
use JsValue;
use crate;
/// Provides the [`TelegramContext`] to the Leptos reactive system.
///
/// # Errors
///
/// Returns an error if the global context has not been initialized with
/// [`TelegramContext::init`].
///
/// # Examples
///
/// ```no_run
/// use leptos::prelude::*;
/// use telegram_webapp_sdk::{core::context::TelegramContext, leptos::provide_telegram_context};
///
/// #[component]
/// fn App() -> impl IntoView {
/// provide_telegram_context().expect("context");
/// let ctx = use_context::<TelegramContext>().expect("context");
/// view! { <span>{ ctx.init_data.auth_date }</span> }
/// }
/// ```