import WithDraggable from '@/components/common/draggable/WithDraggable' import { useRecoilValue } from 'recoil' import { contextPopupPositionState } from '@/store/popupAtom' import { usePopup } from '@/hooks/usePopup' import { useMessage } from '@/hooks/useMessage' import { useState } from 'react' export default function PanelEdit(props) { const contextPopupPosition = useRecoilValue(contextPopupPositionState) const { id, pos = contextPopupPosition, type = 'move', apply } = props const { closePopup } = usePopup() const [length, setLength] = useState(0) const [direction, setDirection] = useState('') const { getMessage } = useMessage() const handleApply = () => { apply() closePopup(id) } return (

{getMessage(type === 'move' ? 'modal.move.setting' : 'modal.copy.setting')}

{getMessage(type === 'move' ? 'modal.move.setting.info' : 'modal.copy.setting.info')}
{getMessage('margin')}
setLength(e.target.value)} />
mm
) }