21 lines
435 B
Rust
21 lines
435 B
Rust
|
pub struct MenuItem {
|
||
|
pub id: String,
|
||
|
pub label: String,
|
||
|
pub href: String,
|
||
|
}
|
||
|
|
||
|
pub fn get_menu_items() -> Vec<MenuItem> {
|
||
|
vec![
|
||
|
MenuItem {
|
||
|
id: "home".to_string(),
|
||
|
label: "Accueil".to_string(),
|
||
|
href: "/".to_string(),
|
||
|
},
|
||
|
MenuItem {
|
||
|
id: "cps".to_string(),
|
||
|
label: "CPS".to_string(),
|
||
|
href: "/cps".to_string(),
|
||
|
},
|
||
|
]
|
||
|
}
|