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

{label}

); }; type Props = { label?: string; buttonIcon?: SessionIconType; buttonClicked?: any; theme: DefaultTheme; }; export const LeftPaneSectionHeader = (props: Props) => { const { label, buttonIcon, buttonClicked } = props; return (
{label && } {buttonIcon && ( )}
); };