import { ChainItemType } from "../../types"; import { Dispatch, FunctionComponent, SetStateAction } from "react"; import { ChainImage } from "./chain-image"; import { Flex1 } from "../../styles/flex-1"; import { ChainImageContainer, ChainInfoContainer, ChainItemContainer, ChainName, WalletAddress, } from "./chain-item"; import color from "../../styles/color"; import styled from "styled-components"; import { Checkbox } from "../checkbox"; 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["900"]}; `;