import { Meta , Story } from '@storybook/react' ; import { PrimaryButton } from '../buttons' ; import { ListItemExpansion } from './ListItemExpansion' ; import React from 'react' ; interface IProps { actions ? : JSX . Element [ ] ; } const Template = ( args ) => < ListItemExpansion { ... args } / > ; export const ListItemExpansionView = Template . bind ( { } ) ; ListItemExpansionView . args = { actions : [ < PrimaryButton key = "[rimary action" onClick = { ( ) => alert ( 'action clicked' ) } > Expansion Action < /PrimaryButton> ] } ; export default { title : 'Components/Interface/ListItemExpansion' , component : ListItemExpansion } as Meta ;