49 lines
1.9 KiB
JavaScript
49 lines
1.9 KiB
JavaScript
import WithDraggable from '@/components/common/draggable/WithDraggable'
|
|
import { useMessage } from '@/hooks/useMessage'
|
|
import { usePopup } from '@/hooks/usePopup'
|
|
import { useRecoilValue } from 'recoil'
|
|
import { contextPopupPositionState } from '@/store/popupAtom'
|
|
|
|
export default function GridCopy(props) {
|
|
const contextPopupPosition = useRecoilValue(contextPopupPositionState)
|
|
const { id, pos = contextPopupPosition } = props
|
|
const { getMessage } = useMessage()
|
|
const { closePopup } = usePopup()
|
|
|
|
return (
|
|
<WithDraggable isShow={true} pos={pos}>
|
|
<div className={`modal-pop-wrap xm mount`}>
|
|
<div className="modal-head">
|
|
<h1 className="title">{getMessage('modal.grid.copy')} </h1>
|
|
<button className="modal-close" onClick={() => closePopup(id)}>
|
|
닫기
|
|
</button>
|
|
</div>
|
|
<div className="modal-body">
|
|
<div className="grid-option-tit">{getMessage('modal.grid.copy.info')}</div>
|
|
<div className="grid-option-wrap">
|
|
<div className="grid-option-box">
|
|
<div className="grid-input-form">
|
|
<span className="mr10">{getMessage('modal.grid.copy.length')}</span>
|
|
<div className="input-grid mr5">
|
|
<input type="text" className="input-origin" defaultValue={910} />
|
|
</div>
|
|
<span>mm</span>
|
|
</div>
|
|
<div className="grid-direction">
|
|
<button className="direction up"></button>
|
|
<button className="direction down act"></button>
|
|
<button className="direction left"></button>
|
|
<button className="direction right"></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div className="grid-btn-wrap">
|
|
<button className="btn-frame modal act">{getMessage('modal.grid.copy.save')}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</WithDraggable>
|
|
)
|
|
}
|