Refactor useToast hook into modules

The useToast hook was refactored into smaller, more manageable modules.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 09:48:44 +00:00
parent 61acb461e0
commit 3f22e6c484
4 changed files with 12 additions and 6 deletions

View File

@@ -3,7 +3,6 @@ import { State } from './types'
// 전역 상태 및 리스너
export const listeners: Array<(state: State) => void> = []
export let memoryState: State = { toasts: [] }
// 마지막 액션 추적 (중복 방지용)
export let lastAction: { type: string; id?: string; time: number } | null = null
// memoryState와 lastAction은 toastManager.ts에서 관리
export { memoryState } from './toastManager';