import WithDraggable from '@/components/common/draggable/WithDraggable'
import { useMessage } from '@/hooks/useMessage'

export default function GridMove(props) {
  const { setShowGridMoveModal, setShowGridCopyModal } = props
  const { getMessage } = useMessage()

  return (
    <WithDraggable isShow={true} pos={{ x: 50, y: 30 }}>
      <div className={`modal-pop-wrap xm mount`}>
        <div className="modal-head">
          <h1 className="title">{getMessage('modal.grid.move')} </h1>
          <button className="modal-close" onClick={() => setShowGridMoveModal(false)}>
            닫기
          </button>
        </div>
        <div className="modal-body">
          <div className="grid-option-tit">{getMessage('modal.grid.move.info')}</div>
          <div className="grid-option-wrap">
            <div className="d-check-box pop mb10">
              <input type="checkbox" id="ch99" />
              <label htmlFor="ch99">{getMessage('modal.grid.move.all')}</label>
            </div>
            <div className="grid-option-box">
              <div className="move-form">
                <p className="mb5">{getMessage('modal.grid.move.length')}</p>
                <div className="input-move-wrap mb5">
                  <div className="input-move">
                    <input type="text" className="input-origin" defaultValue={910} />
                  </div>
                  <span>mm</span>
                </div>
                <div className="input-move-wrap">
                  <div className="input-move">
                    <input type="text" className="input-origin" defaultValue={910} />
                  </div>
                  <span>mm</span>
                </div>
              </div>
              <div className="direction-move-wrap">
                <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.move.save')}</button>
          </div>
        </div>
      </div>
    </WithDraggable>
  )
}
