260202_01_ENH: route 구조 초창기 기획으로 다시 변경 및 Category 별 하위 페이지에 샘플 데이터 모두 적용

This commit is contained in:
2026-02-02 11:32:50 +09:00
parent 4b40c43962
commit 6f8e09bcf3
60 changed files with 1750 additions and 464 deletions

View File

@@ -0,0 +1,48 @@
'use client'
import {useLayoutFilter} from "@/components/layout/LayoutFilterContext";
import {CategoryTargetData} from "@/config/filter.types";
import Profile from "./category-page/Profile";
import PenetrationChange from "./category-page/PenetrationChange";
import Brand from "./category-page/Brand";
import TypeSpec from "./category-page/TypeSpec";
import OwnershipPath from "./category-page/OwnershipPath";
import PurchaseBehavior from "./category-page/PurchaseBehavior";
import PurchaseChannel from "./category-page/PurchaseChannel";
import PaymentMethod from "./category-page/PaymentMethod";
const CategoryPage = () => {
const { isTotal, filterValue } = useLayoutFilter();
console.log(filterValue);
const renderPage = () => {
if (isTotal) return null;
const target = filterValue.target;
switch (target) {
case CategoryTargetData.PROFILE:
return <Profile />;
case CategoryTargetData.PENETRATION_CHANGE:
return <PenetrationChange />;
case CategoryTargetData.BRAND:
return <Brand />;
case CategoryTargetData.TYPE_SPEC:
return <TypeSpec />;
case CategoryTargetData.OWNERSHIP_PATH:
return <OwnershipPath />;
case CategoryTargetData.PURCHASE_BEHAVIOR:
return <PurchaseBehavior />;
case CategoryTargetData.PURCHASE_CHANNEL:
return <PurchaseChannel />;
case CategoryTargetData.PAYMENT_METHOD:
return <PaymentMethod />;
default:
return null;
}
};
return renderPage();
}
export default CategoryPage;