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' import { usePopup } from '@/hooks/usePopup' import { useRecoilValue } from 'recoil' import { contextPopupPositionState } from '@/store/popupAtom' export default function RoofAllocationSetting(props) { const contextPopupPosition = useRecoilValue(contextPopupPositionState) const { id, pos = contextPopupPosition } = props const { getMessage } = useMessage() const { closePopup } = usePopup() const { handleSave, onAddRoofMaterial, onDeleteRoofMaterial, values, roofMaterials, selectedRoofMaterial, setSelectedRoofMaterial } = useRoofAllocationSetting(id) 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')}
) : ( '' )}
))}
) }