mirror of
https://github.com/Psychotoxical/psysonic.git
synced 2026-07-28 01:56:47 +00:00
d927ef2082
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
447 B
TypeScript
18 lines
447 B
TypeScript
import { create } from 'zustand';
|
|
|
|
type SidebarTab = 'queue' | 'lyrics';
|
|
|
|
interface LyricsState {
|
|
activeTab: SidebarTab;
|
|
setTab: (tab: SidebarTab) => void;
|
|
showLyrics: () => void;
|
|
showQueue: () => void;
|
|
}
|
|
|
|
export const useLyricsStore = create<LyricsState>()((set) => ({
|
|
activeTab: 'queue',
|
|
setTab: (tab) => set({ activeTab: tab }),
|
|
showLyrics: () => set({ activeTab: 'lyrics' }),
|
|
showQueue: () => set({ activeTab: 'queue' }),
|
|
}));
|