wing-ops/frontend/src/common/store/weatherSnapshotStore.ts
leedano 38d931db65 refactor(mpa): 탭 디렉토리를 MPA 컴포넌트 구조로 재편
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 17:38:49 +09:00

17 lines
496 B
TypeScript

import { create } from 'zustand';
import type { WeatherSnapshot } from '@interfaces/weather/WeatherInterface';
export type { WeatherSnapshot };
interface WeatherSnapshotStore {
snapshot: WeatherSnapshot | null;
setSnapshot: (data: WeatherSnapshot) => void;
clearSnapshot: () => void;
}
export const useWeatherSnapshotStore = create<WeatherSnapshotStore>((set) => ({
snapshot: null,
setSnapshot: (data) => set({ snapshot: data }),
clearSnapshot: () => set({ snapshot: null }),
}));