import { useMessage } from '@/hooks/useMessage'
import { useRecoilValue } from 'recoil'
import { currentAngleTypeSelector } from '@/store/canvasAtom'

export default function Gable({ offsetRef }) {
  const { getMessage } = useMessage()
  const currentAngleType = useRecoilValue(currentAngleTypeSelector)
  return (
    <>
      <div className="outline-form mb10">
        <span className="mr10" style={{ width: '63px' }}>
          {getMessage('gable.offset')}
        </span>
        <div className="input-grid mr5">
          <input type="text" className="input-origin block" defaultValue={300} ref={offsetRef} />
        </div>
        <span className="thin">mm</span>
      </div>
    </>
  )
}
