generated from mountainridge-xyz/mont-fort-app-new
Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
use leptos::prelude::*;
|
||||
|
||||
#[component]
|
||||
pub fn ErrorView(
|
||||
#[prop(default = "Something went wrong")] title: &'static str,
|
||||
message: String,
|
||||
) -> impl IntoView {
|
||||
view! {
|
||||
<div role="alert" class="alert alert-error">
|
||||
<div>
|
||||
<h3 class="font-bold">{title}</h3>
|
||||
<p class="text-sm">{message}</p>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user