import React from 'react'; import { LegendEntryProps } from './types'; const LegendEntry: React.FC = ({ label, size, textProps, lineProps, rectProps, backgroundProps, simple, onClick, ...props }) => ( { !simple && () } {label.label} { !simple && ( <> {label.value} )} ); export default LegendEntry;