+ ${track
+ ? html`
+
+
+
+
+
+ `
+ : html`
No track playing
`}
+
+ `;
+ }
+}
+
+export default TrackDetailsElement;
+
+////////////////////////////////////////////
+// REGISTER
+////////////////////////////////////////////
+
+export const CLASS = TrackDetailsElement;
+export const NAME = "dtw-winamp-track-details";
+
+defineElement(NAME, TrackDetailsElement);
+
+/**
+ * @param {number} ms
+ * @returns {string}
+ */
+function formatDuration(ms) {
+ const totalSeconds = Math.floor(ms / 1000);
+ const minutes = Math.floor(totalSeconds / 60);
+ const seconds = totalSeconds % 60;
+ return `${minutes}:${seconds.toString().padStart(2, "0")}`;
+}
diff --git a/src/facets/themes/winamp/window/element.js b/src/facets/themes/winamp/window/element.js
index 61143f9a..b21d1f12 100644
--- a/src/facets/themes/winamp/window/element.js
+++ b/src/facets/themes/winamp/window/element.js
@@ -36,6 +36,7 @@ class WindowElement extends DiffuseElement {
render({ html }) {
return html`