Refactor AudioPlayer and LyricSearch components/ AudioPlayer: add DJ controls (porting from old site), and optimize theme handling.

This commit is contained in:
2025-09-24 16:30:13 -04:00
parent f177315231
commit 0e46db70eb
4 changed files with 45530 additions and 113 deletions

View File

@@ -1,4 +1,6 @@
export function useHtmlThemeAttr () {
import { useState, useEffect } from "react";
export function useHtmlThemeAttr() {
const [theme, setTheme] = useState(() =>
document.documentElement.getAttribute("data-theme") || "light"
);