crates/agent_ui/src/ui/model_selector_components.rs 🔗
@@ -1,6 +1,11 @@
use gpui::{Action, FocusHandle, prelude::*};
use ui::{ElevationIndex, KeyBinding, ListItem, ListItemSpacing, Tooltip, prelude::*};
+enum ModelIcon {
+ Name(IconName),
+ Path(SharedString),
+}
+
#[derive(IntoElement)]
pub struct ModelSelectorHeader {
title: SharedString,
@@ -35,11 +40,6 @@ impl RenderOnce for ModelSelectorHeader {
}
}
-enum ModelIcon {
- Name(IconName),
- Path(SharedString),
-}
-
#[derive(IntoElement)]
pub struct ModelSelectorListItem {
index: usize,