import React from 'react' ; interface StoryExampleProps { story : React . ComponentType ; source : React . ComponentType ; } export const StoryExample = ( { story , source } ) => { return ( < div > { story } < details > < summary > Source code < /summary> < div > { source } < /div> < /details> < /div>); } ;