import React from 'react'; import classNames from 'classnames'; import { SessionButton } from './SessionButton'; import { SessionIcon, SessionIconSize, SessionIconType } from './icon'; import { inversedTheme } from '../../state/ducks/SessionTheme'; import { DefaultTheme } from 'styled-components'; const Tab = ({ isSelected, label, onSelect, type, }: { isSelected: boolean; label: string; onSelect?: (event: number) => void; type: number; }) => { const handleClick = onSelect ? () => { onSelect(type); } : undefined; return (

{label}

); }; interface Props { label?: string; buttonIcon?: SessionIconType; buttonClicked?: any; theme: DefaultTheme; } export const LeftPaneSectionHeader = (props: Props) => { const { label, buttonIcon, buttonClicked } = props; const children = []; if (label) { children.push(); } if (buttonIcon) { const button = ( ); children.push(button); } // Create the parent and add the children return
{children}
; };