Move GraphicSlot out of components module (#3444)

This PR moves the `GraphicSlot` definition out of the `components`
module, as it doesn't contain a component.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2023-11-29 15:29:33 -05:00
committed by GitHub
parent 0d31722589
commit d8ed7c0721
3 changed files with 3 additions and 5 deletions
-14
View File
@@ -1,14 +0,0 @@
use gpui::{ImageSource, SharedString};
use crate::Icon;
#[derive(Debug, Clone)]
/// A slot utility that provides a way to to pass either
/// an icon or an image to a component.
///
/// Can be filled with a []
pub enum GraphicSlot {
Icon(Icon),
Avatar(ImageSource),
PublicActor(SharedString),
}