import { CSSTransition } from 'react-transition-group'; import { MouseEvent } from 'react'; import clsx from 'clsx'; import { buttonStyles } from '@gear-js/ui'; import { AnimationTimeout } from '@/shared/config'; import { useNetworkIcon } from '@/hooks'; import styles from './NodesButton.module.scss'; type Props = { name: string; chain: string; version: string; isApiReady: boolean; isOpen: boolean; isFullWidth: boolean; onClick: (event: MouseEvent) => void; }; const NodesButton = ({ name, chain, version, isApiReady, isOpen, isFullWidth, onClick }: Props) => { const { NetworkSVG } = useNetworkIcon(); const btnClasses = clsx(buttonStyles.button, buttonStyles.light, styles.nodeInfoButton, isOpen && styles.open); return ( ); }; export { NodesButton };