//
//  LNCommonAlertView+Room.swift
//  Gami
//
//  Created by OneeChan on 2026/3/16.
//

import Foundation


extension LNCommonAlertView {
    static func showCloseRoomAlert(_ room: LNRoomSession) {
        let alert = LNCommonAlertView()
        alert.titleLabel.text = .init(key: "A00339")
        alert.messageLabel.text = .init(key: "A00340")
        alert.showConfirm(.init(key: "A00022")) { }
        alert.showCancel(.init(key: "A00223")) {
            room.closeRoom()
        }
        
        alert.popup()
    }
}
