홈화면 배너 처리

This commit is contained in:
focp212@naver.com
2025-09-22 16:33:18 +09:00
parent 0480108942
commit 55424b11fb
13 changed files with 87 additions and 34 deletions

View File

@@ -3,10 +3,12 @@ import { create } from 'zustand';
import { devtools, persist } from 'zustand/middleware';
import { immer } from 'zustand/middleware/immer';
import { createUserInfoStore, UserInfoState } from '@/entities/user/model/store';
import { createBannerInfoStore, BannerInfoState } from '@/entities/common/model/store';
import { StorageKeys } from '@/shared/constants/local-storage';
export type RootStore = {
UserStore: UserInfoState;
BannerStore: BannerInfoState;
};
export const useStore = create<RootStore>()(
devtools(
@@ -14,6 +16,7 @@ export const useStore = create<RootStore>()(
immer(
withLenses(() => ({
UserStore: createUserInfoStore,
BannerStore: createBannerInfoStore,
})),
),
{