generated from mountainridge-xyz/mont-fort-app-new
17 lines
390 B
Rust
17 lines
390 B
Rust
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>
|
|
}
|
|
}
|