import React, { ReactElement, useState } from "react"; import { Button } from "../UI/Button"; import { NetworkBar } from "./NetworkBar"; export default { title: "NetworkBar/NetworkBar", component: NetworkBar, parameters: { componentSubtitle: "Bar showing which blockchain network, the application is connected to.", }, }; export const Default = (): ReactElement => { const [network, setNetwork] = useState("goerli"); return (
You are currently on {network}{" "} network. To change it, please upload a new config file. {/* To Simulate change of config file or network by pressing the buttons */}
); };