import { storiesOf } from '@storybook/vue' ; import path from 'path' ; import StoryTitle from '@src/helpers/StoryTitle.vue' ; import UseFullscreenDemo from './UseFullscreenDemo.vue' ; const functionName = 'useFullscreen' ; const functionPath = path . resolve ( __dirname , '..' ) ; const notes = require ( `./${ functionName }.md` ) . default ; const basicDemo = ( ) => ( { components : { StoryTitle , demo : UseFullscreenDemo } , template : `
    <div class="container">
      <story-title 
        function-path="${ functionPath }" 
        source-name="${ functionName }" 
        demo-name="UseFullscreenDemo.vue"
      >
        <template v-slot:title></template>
        <template v-slot:intro></template>
      </story-title>
      <demo />
    </div>` } ) ; storiesOf ( 'ui|useFullscreen' , module ) . addParameters ( { notes } ) . add ( 'Demo' , basicDemo ) ;