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

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

  return (
    <WithDraggable isShow={true} pos={{ x: 50, y: 380 }}>
      <div className={`modal-pop-wrap xm mount`}>
        <div className="modal-head">
          <h1 className="title">{getMessage('modal.grid.copy')} </h1>
          <button className="modal-close" onClick={() => setShowGridCopyModal(false)}>
            닫기
          </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>
  )
}
