Source: sources/react/interactives/TInfoDialog.js

/**
 * @author [Tristan Valcke]{@link https://github.com/Itee}
 * @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
 *
 * @file Todo
 *
 * @example Todo
 *
 */

import React from 'react'

let _instanceCounter = 0

class TInfoDialog extends React.Component {

    static componentDidCatch ( error, info ) {

        console.error( error )

    }

    componentDidMount () {}

    componentWillUnmount () {}

    shouldComponentUpdate ( nextProps, nextState ) {}

    constructor ( props ) {

        super( props )
        _instanceCounter++

    }

    /**
     * React lifecycle
     */
    componentWillMount () {}

    componentWillReceiveProps ( nextProps ) {}

    componentWillUpdate ( nextProps, nextState ) {}

    componentDidUpdate ( prevProps, prevState ) {}

    render () {

        const { id, className } = this.props

        const _id    = id || `tInfoDialog_${_instanceCounter}`
        const _style = {}
        const _class = ( className ) ? `tInfoDialog ${className}` : 'tInfoDialog'

        return (
            <t-info-dialog ref={( container ) => {this._container = container}} id={_id} style={_style} className={_class}></t-info-dialog>
        )

    }

}

export { TInfoDialog }