import { useMessage } from '@/hooks/useMessage' import WithDraggable from '@/components/common/draggable/WithDraggable' import QSelectBox from '@/components/common/select/QSelectBox' import { useRoofAllocationSetting } from '@/hooks/roofcover/useRoofAllocationSetting' export default function RoofAllocationSetting({ setShowRoofAllocationSettingModal }) { const { getMessage } = useMessage() const { handleSave, onAddRoofMaterial, onDeleteRoofMaterial, values, roofMaterials, selectedRoofMaterial, setSelectedRoofMaterial } = useRoofAllocationSetting(setShowRoofAllocationSettingModal) return (

{getMessage('plan.menu.estimate.roof.alloc')}

{getMessage('modal.roof.alloc.info')}
{getMessage('modal.roof.alloc.select.roof.material')}
setSelectedRoofMaterial(e)} />
{values.map((value, index) => (
{index === 0 && 基本屋根材} {index !== 0 && }
{value.type === 'A' ? ( <>
W
L
{getMessage('modal.placement.initial.setting.rafter')}
) : value.type === 'B' ? ( <>
{getMessage('hajebichi')}
{getMessage('modal.placement.initial.setting.rafter')}
) : value.type === 'C' ? ( <>
{getMessage('hajebichi')}
) : value.type === 'D' ? ( <>
L
{getMessage('modal.placement.initial.setting.rafter')}
) : ( '' )}
))}
) }