import { ReactElement } from "react" ; export interface TabData { title : string ; } /**
 * Tab API
 */ export class Tab implements TabData { public id : string ; public title : string ; public edited : boolean ; public container : ( { setEdited , } : { setEdited : ( state : boolean ) => void ; } ) => ReactElement ; param title constructor ( title ) { this . id = Date . now ( ) . toString ( ) ; this . title = title ; this . edited = false ; this . container = ( ) => < div />; } /**
     * Called when the tab is closed
     */ public close ( ) { return ; } /**
     * Called when the tab is being saved
     */ public save ( ) { return ; } param data returns alpha public static fromJson ( data ) { const tab = new Tab ( data . title ) ; return tab ; } }