use gpui::{ ClickEvent, DefiniteLength, Div, Hsla, IntoElement, StatefulInteractiveElement, WindowContext, }; use std::rc::Rc; use crate::prelude::*; use crate::{h_stack, Color, Icon, IconButton, IconElement, Label, LineHeightStyle}; /// Provides the flexibility to use either a standard /// button or an icon button in a given context. pub enum ButtonOrIconButton { Button(Button), IconButton(IconButton), } impl From