NEW PAGE ADD TABLE

This commit is contained in:
filipriec
2025-04-16 22:07:07 +02:00
parent 93a3c246c6
commit 69953401b1
8 changed files with 51 additions and 6 deletions

View File

@@ -0,0 +1,32 @@
// src/components/admin/add_table.rs
use crate::config::colors::themes::Theme;
use ratatui::{
layout::{Alignment, Rect},
style::{Style, Stylize},
widgets::{Block, Borders, Paragraph},
Frame,
};
/// Renders a placeholder page for adding tables.
pub fn render_add_table_page(
f: &mut Frame,
area: Rect,
theme: &Theme,
) {
let block = Block::default()
.title(" Add New Table ")
.borders(Borders::ALL)
.border_style(Style::default().fg(theme.accent))
.style(Style::default().bg(theme.bg));
let inner_area = block.inner(area);
let text = Paragraph::new("This is the placeholder page for adding a new table.\n\nDrawing canvas coming soon!")
.style(Style::default().fg(theme.fg))
.alignment(Alignment::Center);
f.render_widget(block, area);
f.render_widget(text, inner_area);
}