import { Meta , Story } from '@storybook/react' ; import { Loader , ILoader } from './Loader' ; import React from 'react' ; const Template = ( args ) => < Loader { ... args } / > ; export const LoaderView = Template . bind ( { } ) ; LoaderView . args = { id : 'Loader' , loadingText : 'Loading all data' , marginPercent : 15 , spinnerDiameter : 24 } ; export default { title : 'Components/Interface/Loader' , component : Loader } as Meta ;