import { Button,ButtonGroup } from '@chakra-ui/core'; import { FC } from 'react'; import { connect } from 'react-redux'; import { Load3BoxUrl,Save3BoxUrl } from '../redux/ThreeBox'; import { ButtonColor,WhiteColor } from '../styles/Styles'; import { ThreeBoxContainer } from '../styles/ThreeBox'; export interface ThreeBoxProps { dispatch: any; ethAccounts: Array; activeSpace: string; items: Array; } export const ThreeBoxComponent: FC = ({ dispatch, ethAccounts, activeSpace, items, }) => { return( dispatch({ type: 'UPDATE_3BOX_URL', value: e.target.value })} /> ); } export const ThreeBox = connect( (state: any) => ({ ethAccounts: state.ethAccounts, activeSpace: state.activeSpace, items: state.items, }) )(ThreeBoxComponent);