feat: page title 컴포넌트 생성

This commit is contained in:
2025-03-31 13:09:05 +09:00
parent 7860345e89
commit 0aee493d32
12 changed files with 120 additions and 15 deletions
@@ -1,11 +1,11 @@
"use client";
import { createContext, useRef } from "react";
import { createAlertStore } from "../store/alert-store";
import { createUserStore } from "../store/user-store";
import { createAlertStore, createMenuStore, createUserStore } from "../store";
type StoreContextType = {
alertStore: ReturnType<typeof createAlertStore>;
menuStore: ReturnType<typeof createMenuStore>;
userStore: ReturnType<typeof createUserStore>;
};
@@ -18,6 +18,7 @@ export const StoreProvider = ({ children }: { children: React.ReactNode }) => {
if (storeRef.current === null) {
storeRef.current = {
alertStore: createAlertStore(),
menuStore: createMenuStore(),
userStore: createUserStore(),
};
}