48 lines
1.8 KiB
JavaScript
48 lines
1.8 KiB
JavaScript
import WithDraggable from "@/components/common/draggable/withDraggable";
|
|
import { useState } from "react";
|
|
import OffsetTab01 from "./OffsetTab01";
|
|
import OffsetTab02 from "./OffsetTab02";
|
|
|
|
const buttonMenu = [
|
|
{id: 1, name: '外壁の編集'},
|
|
{id: 2, name: 'オフセット'},
|
|
]
|
|
|
|
|
|
export default function OuterWallOffset(){
|
|
const [buttonAct, setButtonAct] = useState(1);
|
|
|
|
return(
|
|
<WithDraggable isShow={true}>
|
|
<div className={`modal-pop-wrap r`}>
|
|
<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="modal-btn-wrap">
|
|
{buttonMenu.map((item) => (
|
|
<button
|
|
key={item.id}
|
|
className={`btn-frame modal ${buttonAct === item.id ? 'act' : ''}`}
|
|
onClick={() => setButtonAct(item.id)}
|
|
>
|
|
{item.name}
|
|
</button>
|
|
))}
|
|
</div>
|
|
<div className="properties-setting-wrap outer">
|
|
{buttonAct === 1 && <OffsetTab01/>}
|
|
{buttonAct === 2 && <OffsetTab02/>}
|
|
</div>
|
|
<div className="grid-btn-wrap">
|
|
<button className="btn-frame modal act">保存</button>
|
|
</div>
|
|
</div>
|
|
<div className="modal-foot handle"></div>
|
|
</div>
|
|
</WithDraggable>
|
|
)
|
|
} |