use std::rc::Rc; use gpui::{ DefiniteLength, Div, Hsla, IntoElement, MouseButton, MouseDownEvent, StatefulInteractiveElement, WindowContext, }; 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