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