diff --git a/lib/music_library_web/components/core_components.ex b/lib/music_library_web/components/core_components.ex
index 3684454d..6c9a5113 100644
--- a/lib/music_library_web/components/core_components.ex
+++ b/lib/music_library_web/components/core_components.ex
@@ -642,6 +642,55 @@ defmodule MusicLibraryWeb.CoreComponents do
"""
end
+ attr :color, :atom, values: [:green, :yellow, :gray], required: true
+ attr :text, :string, required: true
+
+ def badge(assigns) do
+ case assigns.color do
+ :green ->
+ ~H"""
+
+ {@text}
+
+ """
+
+ :yellow ->
+ ~H"""
+
+ {@text}
+
+ """
+
+ :gray ->
+ ~H"""
+
+ {@text}
+
+ """
+ end
+ end
+
## JS Commands
def show(js \\ %JS{}, selector) do
diff --git a/lib/music_library_web/live/stats_live/data_components.ex b/lib/music_library_web/live/stats_live/data_components.ex
index f2c96965..5aae9624 100644
--- a/lib/music_library_web/live/stats_live/data_components.ex
+++ b/lib/music_library_web/live/stats_live/data_components.ex
@@ -65,53 +65,4 @@ defmodule MusicLibraryWeb.StatsLive.DataComponents do
"""
end
-
- attr :color, :atom, values: [:green, :yellow, :gray], required: true
- attr :text, :string, required: true
-
- def badge(assigns) do
- case assigns.color do
- :green ->
- ~H"""
-
- {@text}
-
- """
-
- :yellow ->
- ~H"""
-
- {@text}
-
- """
-
- :gray ->
- ~H"""
-
- {@text}
-
- """
- end
- end
end