import React from 'react' ; import { Logger } from "polar-shared/src/logger/Logger" ; import { AuthHandlers } from "../../../../web/js/apps/repository/auth_handler/AuthHandler" ; import { Link } from "react-router-dom" ; const log = Logger . create ( ) ; export class CreateGroupButton extends React . PureComponent < IProps , IState > { constructor ( props ) { super ( props ) ; this . onCreate = this . onCreate . bind ( this ) ; this . state = { } ; } public render ( ) { return ( < Link to = { { pathname : "/groups/create" } } onClick = { ( ) => this . onCreate ( ) } className = "btn btn-success btn-sm" > Create Group < /Link>); } private onCreate ( ) { const handler = async ( ) => { } ; handler ( ) . catch ( err => log . error ( "Unable to join group: " , err ) ) ; return false ; } } interface IProps { } interface IState { }