import { getSectionDependencies } from "./get-section-dependencies" ; import { ILayout } from "./types" ; param { ILayout } layout export function getLayoutDependencies ( layout ) { return layout . sections . reduce ( ( deps , section ) => { return deps . concat ( getSectionDependencies ( section ) ) ; } , [ ] ) ; }