summary refs log tree commit diff stats
path: root/src/components/unit_overview.rs
blob: 25e56758b59217b02e1ab39dd9c049a0d9c39add (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use leptos::{IntoView, component, view};

use crate::components::{container::Container, icon_p::IconP};

#[component]
pub fn UnitOverview() -> impl IntoView {
    view! {
        <Container
            header="Units"
            buttons=vec![
                (view! { <IconP icon=icondata_io::IoClipboard text="Show unit" /> }, "units"),
                (view! { <IconP icon=icondata_io::IoClipboard text="Create unit" /> }, "create-unit"),
                (view! { <IconP icon=icondata_io::IoPricetags text="Create unit property" /> }, "create-unit-property"),
            ]
        >
            {
                "You have units"
            }
        </Container>
    }
}