import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/ClipboardCopy/clipboard-copy'; import { css } from '@patternfly/react-styles'; import { ClipboardCopyProps } from './ClipboardCopy'; import { PickOptional } from '../../helpers/typeUtils'; export interface ClipboardCopyExpandedProps extends Omit { className?: string; children: React.ReactNode; onChange?: (e: React.FormEvent, text: string) => void; isReadOnly?: boolean; isCode?: boolean; } class ClipboardCopyExpanded extends React.Component { static displayName = 'ClipboardCopyExpanded'; constructor(props: any) { super(props); } static defaultProps: PickOptional = { onChange: (): any => undefined, className: '', isReadOnly: false, isCode: false }; render() { const { className, children, onChange, isReadOnly, isCode, ...props } = this.props; return (
onChange(e, e.target.innerText)} contentEditable={!isReadOnly} {...props} > {isCode ?

    {children}

: children}
); } } export { ClipboardCopyExpanded };