You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: confirm.rs
    path of file: ./repos/zemeroth/src/screen
    
    the code of the file until where you have to start completion: use std::{
    sync::mpsc::{Receiver, Sender},
    time::Duration,
};

use mq::math::Vec2;
use ui::{self, Gui, Widget};

use crate::{
    assets,
    screen::{Screen, StackCommand},
    utils, ZResult,
};

#[derive(Clone, Debug, PartialEq)]
pub enu
    
    pub fn from_lines(lines: &[impl AsRef<str>], sender: Sender<Message>) -> ZResult<Self> {
        let font = assets::get().font;
        let h = utils::line_heights().big;
        let mut layout = ui::VLayout::new();
        for line in lines {
            let text = ui::Drawable::text(line.as_ref(), font);
            let label = Box::new(ui::Label::new(text, h)?);
            layout.add(label);
        }
        Self::from_widget(Box::new(layout), sender)
    }