canonrs-server 0.1.0

CanonRS server-side rendering support
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! @canon-level: strict
//! EmptyTable Island — Canon Rule #340 (zero-logic boundary)

use leptos::prelude::*;
use super::empty_table_ui::EmptyTable as EmptyTableUi;

#[component]
pub fn EmptyTable(
    #[prop(into, default = String::from("No data available"))] title: String,
    #[prop(into, default = String::from("Add your first item to get started"))] description: String,
    #[prop(default = 999u32)] colspan: u32,
    #[prop(into, default = String::new())] class: String,
) -> impl IntoView {
    view! { <EmptyTableUi title=title description=description colspan=colspan class=class />
};
}