import React from 'react'; import { StoryFn, Meta } from '@storybook/react'; import { Display, TextColor, BackgroundColor, BorderColor, AlignItems, } from '../../../helpers/constants/design-system'; import { Box } from '..'; import { AvatarNetworkSize } from './avatar-network.types'; import README from './README.mdx'; import { AvatarNetwork } from './avatar-network'; export default { title: 'Components/ComponentLibrary/AvatarNetwork', component: AvatarNetwork, parameters: { docs: { page: README, }, }, argTypes: { size: { control: 'select', options: Object.values(AvatarNetworkSize), }, color: { options: Object.values(TextColor), control: 'select', }, backgroundColor: { options: Object.values(BackgroundColor), control: 'select', }, borderColor: { options: Object.values(BorderColor), control: 'select', }, name: { control: 'text', }, src: { control: 'text', }, showHalo: { control: 'boolean', }, }, args: { name: 'Arbitrum One', src: './images/arbitrum.svg', size: AvatarNetworkSize.Md, showHalo: false, }, } as Meta; const Template: StoryFn = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const SizeStory: StoryFn = (args) => ( <> ); SizeStory.storyName = 'Size'; export const Name = Template.bind({}); Name.args = { src: '', }; export const Src: StoryFn = (args) => ( ); export const ShowHalo = Template.bind({}); ShowHalo.args = { showHalo: true, }; export const ColorBackgroundColorAndBorderColor: StoryFn< typeof AvatarNetwork > = (args) => ( ); ColorBackgroundColorAndBorderColor.args = { src: '', };