redgold 0.1.48

Decentralized Portfolio Contracts & Data Lake
use strum::IntoEnumIterator;
use strum_macros::EnumIter;

#[derive(Clone, Debug)]
pub struct RecoveryState {
    sub_tab: RecoverySubtab
}

impl Default for RecoveryState {
    fn default() -> Self {
        Self {
            sub_tab: RecoverySubtab::Receive,
        }
    }
}

#[derive(EnumIter, Clone, Debug)]
enum RecoverySubtab {
    Receive,
    Transmit,
    Keygen,
    KeyLoad
}
//
// pub(crate) fn recovery_tab(ui: &mut Ui, _ctx: &Context, _ls: &mut LocalState<E>) {
//     ui.heading("Recovery");
//     // ui.horizontal(|ui| {
//     //    for t in RecoverySubtab::iter() {
//     //        if ui.button(t.to_string()).clicked() {
//     //            ls.otp_state.sub_tab = t;
//     //        }
//     //    }
//     // });
//     // match ls.otp_state.sub_tab {
//     //     RecoverySubtab::Receive => {
//     //         ui.heading("Receive");
//     //         ui.label("Receive OTP");
//     //     }
//     //     RecoverySubtab::Transmit => {
//     //         ui.heading("Transmit");
//     //         ui.label("Transmit OTP");
//     //     }
//     //     RecoverySubtab::Keygen => {
//     //         ui.heading("Keygen");
//     //         ui.label("Keygen OTP");
//     //     }
//     //     RecoverySubtab::KeyLoad => {
//     //         ui.heading("KeyLoad");
//     //         ui.label("KeyLoad OTP");
//     //     }
//     // }
// }