o2o-clinicad-frontend/src/features/plan/hooks/useMarketingPlan.ts

21 lines
604 B
TypeScript

import { useMemo } from "react";
import { MOCK_PLAN } from "@/features/plan/mocks/plan";
import type { MarketingPlan } from "@/features/plan/types/marketingPlan";
type UseMarketingPlanResult = {
data: MarketingPlan | null;
isLoading: boolean;
error: string | null;
};
/**
* Phase 1: 항상 `MOCK_PLAN` 반환.
* `_planRouteId`는 `plan/:id`·추후 API 조회에 사용 예정(현재 목만 반환).
*/
export function useMarketingPlan(_planRouteId: string | undefined): UseMarketingPlanResult {
return useMemo(
() => ({ data: MOCK_PLAN, isLoading: false, error: null }),
[],
);
}