// Libraries import React, { SFC } from 'react'; interface Props { title?: string; onClose?: () => void; children: JSX.Element | JSX.Element[]; } export const PanelOptionSection: SFC = props => { return (
{props.title && (
{props.title} {props.onClose && ( )}
)}
{props.children}
); };