import { useMessage } from '@/hooks/useMessage' import WithDraggable from '@/components/common/draggable/WithDraggable' import WallLine from '@/components/floor-plan/modal/wallLineOffset/type/WallLine' import Offset from '@/components/floor-plan/modal/wallLineOffset/type/Offset' import { useWallLineOffsetSetting } from '@/hooks/roofcover/useWallLineOffsetSetting' import { usePopup } from '@/hooks/usePopup' export default function WallLineOffsetSetting({ id, pos = { x: 50, y: 230 } }) { const { getMessage } = useMessage() const { closePopup } = usePopup() const { type, setType, buttonMenu, currentWallLineRef, TYPES, radioTypeRef, arrow1Ref, arrow2Ref, length1Ref, length2Ref, handleSave, wallLineEditRef, } = useWallLineOffsetSetting(id) const wallLineProps = { length1Ref, length2Ref, arrow1Ref, arrow2Ref, radioTypeRef, currentWallLineRef, } const offsetProps = { length1Ref, arrow1Ref, currentWallLineRef, } return ( closePopup(id)} />
{buttonMenu.map((item) => ( ))}
{getMessage('setting')}
{type === TYPES.WALL_LINE_EDIT && } {type === TYPES.OFFSET && }
) }