mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-17 08:39:40 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1.5 KiB
TypeScript
51 lines
1.5 KiB
TypeScript
import { useState } from 'react';
|
|
|
|
interface ModalState {
|
|
isSpaceSelectorVisible: boolean;
|
|
isShareModalVisible: boolean;
|
|
isReplaceWordModalVisible: boolean;
|
|
isSpeakerLabelModalVisible: boolean;
|
|
isTagSelectorVisible: boolean;
|
|
}
|
|
|
|
interface ModalActions {
|
|
setSpaceSelectorVisible: (visible: boolean) => void;
|
|
setIsShareModalVisible: (visible: boolean) => void;
|
|
setIsReplaceWordModalVisible: (visible: boolean) => void;
|
|
setIsSpeakerLabelModalVisible: (visible: boolean) => void;
|
|
setIsTagSelectorVisible: (visible: boolean) => void;
|
|
closeAllModals: () => void;
|
|
}
|
|
|
|
export function useModalState(): ModalState & ModalActions {
|
|
const [isSpaceSelectorVisible, setSpaceSelectorVisible] = useState(false);
|
|
const [isShareModalVisible, setIsShareModalVisible] = useState(false);
|
|
const [isReplaceWordModalVisible, setIsReplaceWordModalVisible] = useState(false);
|
|
const [isSpeakerLabelModalVisible, setIsSpeakerLabelModalVisible] = useState(false);
|
|
const [isTagSelectorVisible, setIsTagSelectorVisible] = useState(false);
|
|
|
|
const closeAllModals = () => {
|
|
setSpaceSelectorVisible(false);
|
|
setIsShareModalVisible(false);
|
|
setIsReplaceWordModalVisible(false);
|
|
setIsSpeakerLabelModalVisible(false);
|
|
setIsTagSelectorVisible(false);
|
|
};
|
|
|
|
return {
|
|
// State
|
|
isSpaceSelectorVisible,
|
|
isShareModalVisible,
|
|
isReplaceWordModalVisible,
|
|
isSpeakerLabelModalVisible,
|
|
isTagSelectorVisible,
|
|
|
|
// Actions
|
|
setSpaceSelectorVisible,
|
|
setIsShareModalVisible,
|
|
setIsReplaceWordModalVisible,
|
|
setIsSpeakerLabelModalVisible,
|
|
setIsTagSelectorVisible,
|
|
closeAllModals,
|
|
};
|
|
}
|