import { atom } from 'recoil' export const selectedModuleState = atom({ key: 'selectedModuleState', default: [], dangerouslyAllowMutability: true, }) export const selectedModuleOptionsState = atom({ key: 'selectedModuleOptionsState', default: { module: {}, roofMaterials: [ { surfaceType: '', //면조도 installHeight: '', //설치 노 ㅍ이 standardWindSpeedId: '', //기준풍속 verticalSnowCover: '', //수직적설량 moduleTpCd: '', roofMatlCd: '', raftBaseCd: '', trestleMkrCd: '', constMthdCd: '', roofBaseCd: '', }, ], }, dangerouslyAllowMutability: true, }) export const moduleSelectionOptionParamsState = atom({ key: 'moduleSelectionOptionParams', default: { moduleTpCd: '', roofMatlCd: '', raftBaseCd: '', trestleMkrCd: '', constMthdCd: '', roofBaseCd: '', illuminationTp: '', instHt: '', stdWindSpeed: '', stdSnowLd: '', inclCd: '', roofMatlCd: '', }, dangerouslyAllowMutability: true, }) export const selectedConstructionListDataState = atom({ key: 'selectedConstructionListDataState', default: [], dangerouslyAllowMutability: true, }) export const trestleListState = atom({ key: 'trestleListState', default: [], dangerouslyAllowMutability: true, }) export const constMthdListState = atom({ key: 'constMthdListState', default: [], dangerouslyAllowMutability: true, }) export const roofBaseListState = atom({ key: 'roofBaseListState', default: [], dangerouslyAllowMutability: true, }) export const moduleSelectionInitParamsState = atom({ key: 'moduleSelectionInitParamsState', default: {}, dangerouslyAllowMutability: true, }) export const moduleSelectionDataState = atom({ key: 'moduleSelectionDataState', default: { common: {}, module: {}, roofConstructions: [], }, dangerouslyAllowMutability: true, })