import React from 'react'; import { Size, DISPLAY, TextColor, BackgroundColor, BorderColor, Color, AlignItems, } from '../../../helpers/constants/design-system'; import Box from '../../ui/box/box'; import README from './README.mdx'; import { AvatarNetwork } from './avatar-network'; import { AVATAR_NETWORK_SIZES } from './avatar-network.constants'; export default { title: 'Components/ComponentLibrary/AvatarNetwork', component: AvatarNetwork, parameters: { docs: { page: README, }, }, argTypes: { size: { control: 'select', options: Object.values(AVATAR_NETWORK_SIZES), }, 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: Size.MD, showHalo: false, }, }; const Template = (args) => { return ; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const SizeStory = (args) => ( <> ); SizeStory.storyName = 'Size'; export const Name = Template.bind({}); Name.args = { src: '', }; export const Src = (args) => ( ); export const ShowHalo = Template.bind({}); ShowHalo.args = { showHalo: true, }; export const ColorBackgroundColorAndBorderColor = (args) => ( ); ColorBackgroundColorAndBorderColor.args = { src: '', };