import React from 'react' import CopyButton from './CopyButton' import { COLORS } from '../lib/constants' import { Controls, ControlsBW } from './svg/Controls' import CopySVG from './svg/Copy' import CheckMark from './svg/Checkmark' const size = 24 function renderCopyButton({ copied }) { return ( ) } export default ({ titleBar, theme, handleTitleBarChange, copyable, code }) => (
{theme === 'bw' ? : }
handleTitleBarChange(e.target.value)} />
{copyable && (
{renderCopyButton}
)}
)