Refactor components and implement generation state management

- Updated import order in App component for consistency.
- Enhanced Sidebar component with loading indicator for audio generation state.
- Integrated generation state management using Zustand in GenerationForm and Sidebar.
- Improved ProfileList component formatting for better readability.
- Added new generationStore for managing audio generation state across components.
This commit is contained in:
Jamie Pine
2026-01-25 19:13:23 -08:00
parent 1f075c1c15
commit d9de8f04f2
6 changed files with 44 additions and 10 deletions
+11
View File
@@ -0,0 +1,11 @@
import { create } from 'zustand';
interface GenerationState {
isGenerating: boolean;
setIsGenerating: (generating: boolean) => void;
}
export const useGenerationStore = create<GenerationState>((set) => ({
isGenerating: false,
setIsGenerating: (generating) => set({ isGenerating: generating }),
}));