import { ChainItemType } from "../../types"; import { ChangeEvent, Dispatch, FunctionComponent, SetStateAction, useEffect, useState, } from "react"; import { ChainImageContainer, ChainInfoContainer, ChainItemContainer, } from "./chain-list"; import { ChainImage } from "./chain-image"; import { Flex1 } from "../../styles/flex-1"; import { ChainCheckBox, ChainName, WalletAddress } from "./chain-item"; import color from "../../styles/color"; import styled from "styled-components"; interface Props { allChecked: boolean; setAllChecked: Dispatch>; chainItem: ChainItemType; } export const AllChainsItem: FunctionComponent = (props) => { const { allChecked, setAllChecked, chainItem } = props; const checkHandler = () => { setAllChecked(!allChecked); }; return ( {`.${chainItem.prefix}`} {chainItem.address} ); }; const AllChainsContainer = styled.div` width: 100%; background-color: ${color.grey["800"]}; `;