use super::Organization;
use dioxus::prelude::{Props, component, dioxus_elements, rsx};
use dioxus_core::Element;
use dioxus_i18n::t;
use oparl_types::Organization;
#[derive(Debug, Clone, PartialEq, Props)]
pub struct OrganizationListProps {
organizations: Vec<Organization>,
}
#[component]
pub fn OrganizationList(props: OrganizationListProps) -> Element {
rsx! {
div {
class: "card",
div {
class: "header",
h2 { { t!("organizations") } }
},
ul {
class: "sectional",
style: "list-style-type: '🛖 '; padding-left: 1.5em;",
for organization in props.organizations {
li {
key: "{organization.id}",
Organization { organization }
}
}
}
}
}
}