cloudflare-dns 0.1.5

A TUI for managing Cloudflare DNS records programmatically
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::ui::colors::{SURFACE0, YELLOW};
use crate::ui::state::StatusBarProps;
use iocraft::prelude::*;

#[component]
pub fn StatusBar(props: &StatusBarProps, _hooks: Hooks) -> impl Into<AnyElement<'static>> {
    element! {
        View(background_color: SURFACE0, padding_left: 2, padding_right: 2, padding_top: 1, padding_bottom: 1) {
            Text(content: props.message.clone(), color: YELLOW)
        }
    }
}