netspd 0.1.5

A beautiful, modern, minimalistic network speed testing terminal application
Documentation
//! The download metrics card.

use ratatui::layout::Rect;
use ratatui::Frame;

use crate::app::state::TransferView;
use crate::tui::theme::Theme;

use super::transfer_card::{self, CardStyle};

/// Renders the download card.
pub fn render(frame: &mut Frame, area: Rect, theme: &Theme, view: &TransferView, active: bool) {
    let style = CardStyle {
        title: "Download",
        icon: crate::tui::glyphs::current().down,
        color: theme.colors.download,
    };
    transfer_card::render(frame, area, theme, style, view, active);
}