pub use attempt::Attempt;
pub use button::Button;
pub use header::StyledHeader;
pub use problem::Problem;
pub use problem_info::ProblemInfo;

pub mod attempt;
pub mod button;
pub mod checkbox;
pub mod header;
pub mod header_v2;
pub mod icons;
pub mod outlined_box;
pub mod problem;
pub mod problem_info;

use leptos::prelude::*;

#[component]
pub fn OnHoverRed(children: Children) -> impl IntoView {
    view! {
        <div class="relative group">
            <div>{children()}</div>
            <div class="absolute inset-0 bg-red-500 opacity-0 group-hover:opacity-50" />
        </div>
    }
}
