import WithDraggable from '@/components/common/draggable/withDraggable'
import { useRecoilValue } from 'recoil'
import { contextPopupPositionState } from '@/store/popupAtom'
import { useMessage } from '@/hooks/useMessage'
import { usePopup } from '@/hooks/usePopup'

export default function LinePropertySetting(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 r`}>
        <div className="modal-head">
          <h1 className="title">各辺属性の変更 </h1>
          <button className="modal-close" onClick={() => closePopup(id)}>
            닫기
          </button>
        </div>
        <div className="modal-body">
          <div className="guide">
            <span className="mb10">属性を変更する辺を選択してください。</span>
            <span>選択した値 [龍丸]</span>
          </div>
          <div className="properties-setting-wrap outer">
            <div className="setting-tit">設定</div>
            <div className="outline-wrap">
              <div className="radio-grid-wrap">
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra01" />
                  <label htmlFor="ra01">軒先</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra02" />
                  <label htmlFor="ra02">ケラバ</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra03" />
                  <label htmlFor="ra03">龍丸</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra04" />
                  <label htmlFor="ra04">ケラバ左</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra05" />
                  <label htmlFor="ra05">ヨセムネ</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra06" />
                  <label htmlFor="ra06">ケラバ右</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra07" />
                  <label htmlFor="ra07">片側の流れ</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra08" />
                  <label htmlFor="ra08">谷</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra09" />
                  <label htmlFor="ra09">壁取り</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra10" />
                  <label htmlFor="ra10">Lの捨て渓谷</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra11" />
                  <label htmlFor="ra11">壁取り(型)</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra12" />
                  <label htmlFor="ra12">マンサード</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra13" />
                  <label htmlFor="ra13">壁取合(流れ)</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra14" />
                  <label htmlFor="ra14">設定なし</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra15" />
                  <label htmlFor="ra15">壁取合(流れ左)</label>
                </div>
                <div className="d-check-radio pop">
                  <input type="radio" name="radio01" id="ra16" />
                  <label htmlFor="ra16">壁取り(流れ右)</label>
                </div>
              </div>
            </div>
          </div>
          <div className="grid-btn-wrap">
            <button className="btn-frame modal act">保存</button>
          </div>
        </div>
      </div>
    </WithDraggable>
  )
}
