2024-05-13 19:13:40 +02:00
|
|
|
use leptos::*;
|
|
|
|
use crate::prelude::*;
|
|
|
|
|
|
|
|
#[component]
|
|
|
|
pub fn TimelinePage(name: &'static str, tl: Timeline) -> impl IntoView {
|
|
|
|
let auth = use_context::<Auth>().expect("missing auth context");
|
|
|
|
view! {
|
|
|
|
<div>
|
|
|
|
<Breadcrumb back=false>
|
|
|
|
{name}
|
|
|
|
<a class="clean ml-1" href="#" on:click=move |_| {
|
|
|
|
tl.reset(tl.next.get().split('?').next().unwrap_or_default().to_string());
|
2024-05-27 16:50:42 +02:00
|
|
|
tl.more(auth);
|
2024-05-13 19:13:40 +02:00
|
|
|
}><span class="emoji">
|
|
|
|
"\u{1f5d8}"
|
|
|
|
</span></a>
|
|
|
|
</Breadcrumb>
|
|
|
|
<div class="mt-s mb-s" >
|
|
|
|
<TimelineFeed tl=tl />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|