pub fn render_component( render: impl FnMut(&ViewContext) -> Frame, width: u16, rows: u16, ) -> TestTerminal ⓘ