remove old svelte web source
This commit is contained in:
17
src/components/site_header.rs
Normal file
17
src/components/site_header.rs
Normal file
@ -0,0 +1,17 @@
|
||||
pub struct Link {
|
||||
pub href: String,
|
||||
pub label: String,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct HeaderProps {
|
||||
pub back_link: Option<Link>,
|
||||
}
|
||||
|
||||
impl HeaderProps {
|
||||
pub fn with_back_link(link: Link) -> Self {
|
||||
Self {
|
||||
back_link: Some(link),
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user