Some checks failed
Push Workflows / docs (push) Successful in 1m35s
Push Workflows / rustfmt (push) Successful in 11s
Push Workflows / clippy (push) Failing after 58s
Push Workflows / leptos-test (push) Successful in 3m4s
Push Workflows / test (push) Successful in 3m22s
Push Workflows / build (push) Successful in 4m43s
Push Workflows / docker-build (push) Failing after 14m42s
Push Workflows / nix-build (push) Successful in 17m22s
15 lines
406 B
Rust
15 lines
406 B
Rust
use leptos::prelude::*;
|
|
|
|
#[component]
|
|
pub fn Song(song_image_path: String, song_title: String, song_artist: String) -> impl IntoView {
|
|
view! {
|
|
<div class="queue-song">
|
|
<img src={song_image_path} alt={song_title.clone()} />
|
|
<div class="queue-song-info">
|
|
<h3>{song_title}</h3>
|
|
<p>{song_artist}</p>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|