lanparty 0.1.2

LAN communication and peer discovery.
use ratatui::{
    Frame,
    layout::{Margin, Rect},
    style::Style,
    widgets::Block,
};

use crate::app::{server_state::ServerState, ui_state::UiState};

pub fn draw_host(frame: &mut Frame, inner: Rect, ui_state: &UiState, server_state: &ServerState) {
    let colors = ui_state.theme.colors();
    let area = inner.inner(Margin {
        horizontal: 1,
        vertical: 0,
    });

    frame.render_widget(
        Block::bordered()
            .border_type(ratatui::widgets::BorderType::Double)
            .border_style(Style::default().fg(colors.accent)),
        area,
    );
}