import React from 'react' ; import SequenceElement from './SequenceElement' ; import { RevealProvider , RevealProviderProps } from './RevealProvider' ; export const RevealChildren = ( { children , ... rest } ) => { return ( < RevealProvider { ... rest } > { React . Children . map ( children , ( child , index ) => ( < SequenceElement index = { index } key = { index } > { child } < /SequenceElement>))} < /RevealProvider>); } ;