slot.rs

 1use gpui::{ImageSource, SharedString};
 2
 3use crate::Icon;
 4
 5/// A slot utility that provides a way to to pass either
 6/// an icon or an image to a component.
 7#[derive(Debug, Clone)]
 8pub enum GraphicSlot {
 9    Icon(Icon),
10    Avatar(ImageSource),
11    PublicActor(SharedString),
12}