28 lines
1.4 KiB
JavaScript
28 lines
1.4 KiB
JavaScript
import WithDraggable from "@/components/common/draggable/withDraggable";
|
|
import { useState } from "react";
|
|
import HexagonalRoofTab01 from "./HexagonalRoofTab01";
|
|
import HexagonalRoofTab02 from "./HexagonalRoofTab02";
|
|
|
|
export default function HexagonalRoofOption(){
|
|
const [tabNum, setTabNum] = useState(1);
|
|
return(
|
|
<WithDraggable isShow={true} size={'lx-2'}>
|
|
<div className="modal-head handle">
|
|
<h1 className="title">モジュール/架台設定 </h1>
|
|
<button className="modal-close">닫기</button>
|
|
</div>
|
|
<div className="modal-body">
|
|
<div className="left-bar handle"></div>
|
|
<div className="right-bar handle"></div>
|
|
<div className="roof-module-tab">
|
|
<div className={`module-tab-bx ${tabNum === 1 || tabNum === 2 ? 'act': ''}`}>方位/モジュール設定</div>
|
|
<span className={`tab-arr ${ tabNum === 2 ? 'act': ''}`}></span>
|
|
<div className={`module-tab-bx ${tabNum === 2 ? 'act': ''}`}>モジュール配置</div>
|
|
</div>
|
|
{tabNum === 1 && <HexagonalRoofTab01 setTabNum={setTabNum}/>}
|
|
{tabNum === 2 && <HexagonalRoofTab02 setTabNum={setTabNum}/>}
|
|
</div>
|
|
<div className="modal-foot handle"></div>
|
|
</WithDraggable>
|
|
)
|
|
}
|