46 lines
1.6 KiB
JavaScript
46 lines
1.6 KiB
JavaScript
'use client'
|
|
|
|
import { useRecoilValue } from 'recoil'
|
|
import { useMessage } from '@/hooks/useMessage'
|
|
import WithDraggable from '@/components/common/draggable/WithDraggable'
|
|
import { usePopup } from '@/hooks/usePopup'
|
|
import { contextPopupPositionState } from '@/store/popupAtom'
|
|
import QSelectBox from '@/components/common/select/QSelectBox'
|
|
|
|
export default function RoofMaterialSetting(props) {
|
|
const contextPopupPosition = useRecoilValue(contextPopupPositionState)
|
|
const { id, pos = contextPopupPosition } = props
|
|
const { getMessage } = useMessage()
|
|
const { closePopup } = usePopup()
|
|
const roofMaterials = [
|
|
{ name: '기와1', value: 'material1' },
|
|
{ name: '기와2', value: 'material2' },
|
|
{ name: '기와3', value: 'material3' },
|
|
{ name: '기와4', value: 'material4' },
|
|
{ name: '기와5', value: 'material5' },
|
|
]
|
|
|
|
return (
|
|
<WithDraggable isShow={true} pos={pos}>
|
|
<div className={`modal-pop-wrap xxxm mount`}>
|
|
<div className="modal-head">
|
|
<h1 className="title">{getMessage('modal.roof.material.edit')} </h1>
|
|
<button className="modal-close" onClick={() => closePopup(id)}>
|
|
닫기
|
|
</button>
|
|
</div>
|
|
<div className="modal-body">
|
|
<div className="slope-wrap">
|
|
<div className="grid-select">
|
|
<QSelectBox title={'지붕재 선택'} options={roofMaterials} />
|
|
</div>
|
|
</div>
|
|
<div className="grid-btn-wrap">
|
|
<button className="btn-frame modal act">{getMessage('modal.common.save')}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</WithDraggable>
|
|
)
|
|
}
|