import React from 'react' ; import Layer from './Layer' ; interface LayersProps { layers : next . AppArtboardLayer [ ] ; images : next . ImgAsset [ ] ; svgs : next . SvgAsset [ ] ; setSelection ( selection ) : void ; setGroupSelection ( groupSelection ) : void ; setHover ( hover ) : void ; } const Layers = ( props ) => { return ( < div className = 'c-layers' > { props . layers . map ( ( layer , index ) => ( < Layer layer = { layer } key = { index } images = { props . images } svgs = { props . svgs } setSelection = { props . setSelection } setGroupSelection = { props . setGroupSelection } setHover = { props . setHover } / > ) ) } < /div>); } ; export default Layers ;