use std::sync::Arc; use gpui::{ CallbackHandle, DefiniteLength, Hsla, MouseButton, StatefulInteractiveComponent, WindowContext, }; use crate::prelude::*; use crate::{h_stack, Icon, IconButton, IconElement, Label, LineHeightStyle, TextColor}; /// 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