import { ComponentProps } from 'react' ; import { DEFAULT_NETWORK } from '@config' ; import { customNodeConfig } from '@fixtures' ; import { noOp } from '@utils' ; import AddOrEditNetworkNode from './AddOrEditNetworkNode' ; const networkId = DEFAULT_NETWORK ; export default { title : 'Features/AddorEditNetworkNode' , component : AddOrEditNetworkNode } ; const Template = ( args ) => ( < div className = "sb-container" style = { { maxWidth : '800px' } } > < AddOrEditNetworkNode { ... args } / > < /div>); const defaultProps = { networkId , editNode : undefined , onComplete : noOp , isAddingCustomNetwork : false } ; export const AddNetworkNode = Template . bind ( { } ) ; AddNetworkNode . storyName = 'AddNetworkNode' ; AddNetworkNode . args = { ... defaultProps } ; export const EditNetworkNode = Template . bind ( { } ) ; EditNetworkNode . storyName = 'EditNetworkNode' ; EditNetworkNode . args = { ... defaultProps , editNode : customNodeConfig } ;