import * as React from 'react' import CertificateFileSelection from './CertificateFileSelection' import Undo from '@material-ui/icons/Undo' import { bindActionCreators } from 'redux' import { Button, Grid } from '@material-ui/core' import { connect } from 'react-redux' import { connectionManagerActions } from '../../actions' import { ConnectionOptions } from '../../model/ConnectionOptions' import { Theme, withStyles } from '@material-ui/core/styles' interface Props { connection: ConnectionOptions classes: any managerActions: typeof connectionManagerActions } interface State { subscription: string } class Certificates extends React.PureComponent { constructor(props: any) { super(props) this.state = { subscription: '' } } private handleChange = (name: string) => (event: any) => { this.props.managerActions.updateConnection(this.props.connection.id, { [name]: event.target.value, }) } private renderCertificateInfo() { if (!this.props.connection.selfSignedCertificate) { return null } return } public render() { const { classes } = this.props return (

) } } const mapDispatchToProps = (dispatch: any) => { return { managerActions: bindActionCreators(connectionManagerActions, dispatch), } } const styles = (theme: Theme) => ({ fullWidth: { width: '100%', }, gridPadding: { padding: '0 12px !important', }, button: { marginTop: theme.spacing(3), marginRight: theme.spacing(2), }, }) export default connect(undefined, mapDispatchToProps)(withStyles(styles)(Certificates))