Refactor useToast hook

The useToast hook was refactored into smaller, more manageable files to improve code organization and maintainability.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 09:47:29 +00:00
parent cd6c92d7de
commit 61acb461e0
11 changed files with 257 additions and 231 deletions

9
src/hooks/toast/store.ts Normal file
View File

@@ -0,0 +1,9 @@
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