import React from 'react' ; import { BrowserTabsList } from "./BrowserTabsList" ; import { AppRuntime } from "polar-shared/src/util/AppRuntime" ; import { BrowserTabContents } from './BrowserTabContents' ; interface IProps { readonly children : React . ReactElement ; } export const BrowserTabs = React . memo ( function BrowserTabs ( props ) { if ( ! AppRuntime . isElectron ( ) ) { return props . children ; } return ( < > < BrowserTabsList /> < BrowserTabContents / > { props . children } < />); } ) ;