use gpui_kit::{Div, Hsla, ParentElement as _, SharedString, Styled as _, div, px};
mod pill;
pub(crate) use pill::height as pill_height;
pub use pill::{Pill, PillTone};
pub const PADDING_X_PX: f32 = 5.;
pub const FONT_SIZE_PX: f32 = 11.;
pub const RADIUS_PX: f32 = 7.;
pub fn badge(label: impl Into<SharedString>, background: Hsla, foreground: Hsla) -> Div {
div()
.flex_shrink_0()
.px(px(PADDING_X_PX))
.rounded(px(RADIUS_PX))
.bg(background)
.text_color(foreground)
.text_size(px(FONT_SIZE_PX))
.child(label.into())
}