{"size": 1065, "ext": "js", "max_stars_repo_path": "components/ethereum-account.stories.js", "max_stars_repo_name": "bilinkis/POH-vouch-timeout", "max_stars_repo_stars_event_min_datetime": "2020-09-23T04:42:26.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-03T03:43:29.000Z", "max_issues_repo_path": "components/ethereum-account.stories.js", "max_issues_repo_name": "bilinkis/POH-vouch-timeout", "max_issues_repo_issues_event_min_datetime": "2020-12-23T21:43:05.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-21T21:12:51.000Z", "max_forks_repo_path": "components/ethereum-account.stories.js", "max_forks_repo_name": "spacecowb0y/proof-of-humanity-web", "max_forks_repo_forks_event_min_datetime": "2021-02-16T19:10:11.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-08T13:29:38.000Z"}
{"max_stars_count": 69, "max_issues_count": 342, "max_forks_count": 32, "avg_line_length": 19.3636363636, "max_line_length": 56, "alphanum_fraction": 0.5539906103}
import EthereumAccount from "./ethereum-account";
import { zeroAddress } from "./parsing";

const metadata = {
  title: "Web3/EthereumAccount",
  component: EthereumAccount,
  argTypes: {
    address: {
      type: "string",
      description: "The account's address.",
      defaultValue: zeroAddress,
      table: {
        type: {
          summary: "string",
        },
      },
    },
    diameter: {
      type: "number",
      description: "The diameter of the identicon.",
      defaultValue: 24,
      table: {
        type: {
          summary: "number",
        },
      },
    },
    sx: {
      type: "object",
      description: "Theme UI sx prop.",
      table: {
        type: {
          summary: "object",
        },
      },
    },
  },
};
export default metadata;

function Template(args) {
  return <EthereumAccount {...args} />;
}

export const Basic = Template.bind({});
Basic.args = {
  address: "0x1111111111111111111111111111111111111111",
  diameter: 24,
};

export const Loading = Template.bind({});
Loading.args = {
  address: null,
};
