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::AgendaItem; use dioxus::prelude::{Props, component, dioxus_elements, rsx}; use dioxus_core::Element; use oparl_types::AgendaItem; #[derive(Debug, Clone, PartialEq, Props)] pub struct AgendaItemListProps { agenda_items: Vec<AgendaItem>, } #[component] pub fn AgendaItemList(props: AgendaItemListProps) -> Element { rsx! { h2 { "Agenda items" } for agenda_item in props.agenda_items{ li { key: "{agenda_item.id}", AgendaItem{ agenda_item } } } } }