import { SectionsType } from './sections-type'; const submissionSectionsMap = new Map(); export function renderSectionFor(sectionType: SectionsType) { return function decorator(objectElement: any) { if (!objectElement) { return; } submissionSectionsMap.set(sectionType, objectElement); }; } export function rendersSectionType(sectionType: SectionsType) { return submissionSectionsMap.get(sectionType); }