1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
// SPDX-FileCopyrightText: Politik im Blick developers // SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at> // // SPDX-License-Identifier: AGPL-3.0-or-later OR EUPL-1.2 use super::Organization; use dioxus::prelude::{Props, component, dioxus_elements, rsx}; use dioxus_core::Element; use oparl_types::Organization; #[derive(Debug, Clone, PartialEq, Props)] pub struct OrganizationListProps { organizations: Vec<Organization>, } #[component] pub fn OrganizationList(props: OrganizationListProps) -> Element { rsx! { h2 { "Organizations" } for organization in props.organizations { li { key: "{organization.id}", Organization { organization } } } } }