use std::{collections::BTreeSet, path::PathBuf};

use cleanr_core::{EntryKind, ScanEntry};
use cleanr_fs::ScanPhase;
use cleanr_i18n::LanguagePackSource;
use cleanr_tasks::restored_run_ids;
use ratatui::{
    Frame,
    layout::{Constraint, Direction, Layout, Position, Rect},
    style::{Color, Modifier, Style},
    text::{Line, Span},
    widgets::{Block, Borders, Clear, Gauge, List, ListItem, ListState, Padding, Paragraph, Wrap},
};

use crate::{
    app::{ConfirmChoice, InsightState, Mode, View, Workbench},
    theme::Theme,
};

// -------------------------------------------------------------------------

mod chrome;
mod context;
mod helpers;
mod home;
mod restore;
mod root;
mod scan;
mod usage;

use chrome::*;
use context::*;
pub(crate) use helpers::*;
use home::*;
use restore::*;
pub(crate) use root::render;
use scan::*;
use usage::render_usage;
#[cfg(test)]
pub(crate) use usage::usage_descendant_count;
pub(crate) use usage::usage_entries;
