import WithDraggable from '@/components/common/draggable/WithDraggable' import Eaves from '@/components/floor-plan/modal/roofShape/passivity/Eaves' import Gable from '@/components/floor-plan/modal/roofShape/passivity/Gable' import Shed from '@/components/floor-plan/modal/roofShape/passivity/Shed' import { useMessage } from '@/hooks/useMessage' import { useRoofShapePassivitySetting } from '@/hooks/roofcover/useRoofShapePassivitySetting' import { usePopup } from '@/hooks/usePopup' export default function RoofShapePassivitySetting({ id, pos = { x: 50, y: 230 } }) { const { handleSave, handleConfirm, handleRollback, buttons, type, setType, TYPES, offsetRef, pitchRef, pitchText } = useRoofShapePassivitySetting(id) const { getMessage } = useMessage() const { closePopup } = usePopup() const eavesProps = { offsetRef, pitchRef, pitchText, } const gableProps = { offsetRef, pitchRef, pitchText, } const shedProps = { offsetRef, } return (

{getMessage('plan.menu.roof.cover.roof.shape.passivity.setting')}

{buttons.map((button) => ( ))}
{getMessage('setting')}
{type === TYPES.EAVES && } {type === TYPES.GABLE && } {type === TYPES.SHED && }
) }