chat_ui_components/components/
tab_locked.rs

1use dioxus::prelude::*;
2
3#[component]
4pub fn TabLocked() -> Element {
5    rsx! {
6        div {
7            class: "room-prompt-overlay",
8            div {
9                class: "room-prompt-box",
10                h2 { "Another instance is running" }
11                p {
12                    class: "room-hint",
13                    "Only one instance of P2Pandemonium can run at a time."
14                }
15                button {
16                    class: "btn-primary",
17                    id: "tab-retry-btn",
18                    onclick: move |_| {
19                        // In a real app we'd try to reacquire the lock
20                    },
21                    "Retry"
22                }
23            }
24        }
25    }
26}