use crate::tui::state::EditorState;
use crate::tui::theme::Theme;
use ratatui::Frame;
pub use crate::tui::views::editor::{
get_autocomplete_suggestions, validate_and_get_feedback, AutoCompletionSuggestion, EditorMode,
ValidationFeedback,
};
pub struct EditorView;
impl EditorView {
pub fn new() -> Self {
Self
}
pub fn render(
frame: &mut Frame,
area: ratatui::layout::Rect,
state: &EditorState,
feedback: &ValidationFeedback,
theme: &Theme,
) {
crate::tui::views::editor::render(frame, area, state, feedback, theme);
}
}
impl Default for EditorView {
fn default() -> Self {
Self::new()
}
}
pub fn render(
frame: &mut Frame,
area: ratatui::layout::Rect,
state: &EditorState,
feedback: &ValidationFeedback,
theme: &Theme,
) {
crate::tui::views::editor::render(frame, area, state, feedback, theme);
}