import { ISettings } from "./types" ; param { ISettings } settings export function extractAssets ( settings ) { const assets = [ ] ; if ( settings . fileSrc ) { assets . push ( settings . fileSrc ) ; } if ( settings . cropSrc ) { assets . push ( settings . cropSrc ) ; } return assets ; }