"use client"; import { useState } from "react"; import type { WindowPopupKey } from "@/features/windowPopup/model/popupDefinitions"; type Props = { onOpenPopup: (popupKey: WindowPopupKey) => void; }; const ANALYSIS_POPUP_ITEMS: Array<{ key: WindowPopupKey; label: string }> = [ { key: "pipeAnalysisPopup", label: "관로분석" }, { key: "floodPredictionMapPopup", label: "침수예측지도" }, { key: "floodHistoryPopup", label: "침수발생이력" }, { key: "gisEditPopup", label: "GIS 편집" }, { key: "gisManagementPopup", label: "GIS 관리" }, { key: "flowRiskPopup", label: "통수 위험" }, ]; export default function AnalysisPopupMenu({ onOpenPopup }: Props) { const [isOpen, setIsOpen] = useState(true); return (
{isOpen ? (
{ANALYSIS_POPUP_ITEMS.map((item) => ( ))}
) : null}
); }