pub mod use_cookie {
use ::leptos_use_cookie::*;
use codee::{Decoder, Encoder};
use leptos::prelude::*;
#[doc = " Deprecated forwarding wrapper of [`leptos_use_cookie::use_cookie`](https://docs.rs/leptos-use-cookie/latest/leptos_use_cookie/fn.use_cookie.html).\n\n Add the `leptos-use-cookie` crate to your dependencies and use `leptos_use_cookie::use_cookie` instead."]
#[deprecated(
since = "0.20.0",
note = "leptos-use has been split into micro crates. Add `leptos-use-cookie` to your dependencies and use `leptos_use_cookie::use_cookie` instead."
)]
#[inline(always)]
pub fn use_cookie<T, C>(cookie_name: &str) -> (Signal<Option<T>>, WriteSignal<Option<T>>)
where
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
T: Clone + PartialEq + Send + Sync + 'static,
T: std::fmt::Debug,
<C as Encoder<T>>::Error: std::fmt::Debug,
{
::leptos_use_cookie::use_cookie::<T, C>(cookie_name)
}
#[doc = " Deprecated forwarding wrapper of [`leptos_use_cookie::use_cookie_with_options`](https://docs.rs/leptos-use-cookie/latest/leptos_use_cookie/fn.use_cookie_with_options.html).\n\n Add the `leptos-use-cookie` crate to your dependencies and use `leptos_use_cookie::use_cookie_with_options` instead."]
#[deprecated(
since = "0.20.0",
note = "leptos-use has been split into micro crates. Add `leptos-use-cookie` to your dependencies and use `leptos_use_cookie::use_cookie_with_options` instead."
)]
#[inline(always)]
pub fn use_cookie_with_options<T, C>(
cookie_name: &str,
options: UseCookieOptions<T, <C as Encoder<T>>::Error, <C as Decoder<T>>::Error>,
) -> (Signal<Option<T>>, WriteSignal<Option<T>>)
where
C: Encoder<T, Encoded = String> + Decoder<T, Encoded = str>,
T: Clone + PartialEq + Send + Sync + 'static,
T: std::fmt::Debug,
<C as Encoder<T>>::Error: std::fmt::Debug,
{
::leptos_use_cookie::use_cookie_with_options::<T, C>(cookie_name, options)
}
}