// rocie - An enterprise grocery management system - Web app // // Copyright (C) 2026 Benedikt Peetz // SPDX-License-Identifier: GPL-3.0-or-later // // This file is part of Rocie. // // You should have received a copy of the License along with this program. // If not, see . use leptos::{ IntoView, component, error::Error, html::Select, prelude::{ ClassAttribute, CollectView, ElementChild, GlobalAttributes, NodeRef, NodeRefAttribute, }, server::LocalResource, view, }; use crate::components::{async_fetch::AsyncFetch, get_id}; #[component] pub fn SelectPlaceholder( label: &'static str, node_ref: NodeRef {move || { AsyncFetch! { @map_error_in_producer from_resource = options, producer = |options| { options .into_iter() .map(|(label, value)| { view! { } }) .collect_view() } } }} // TODO: Reference `var(--tw-border-2)` instead of the `2 px` <2025-10-01>
} }