import React, { FC, memo } from 'react'; import { Checkbox } from '@grafana/ui'; interface Props { checked?: boolean; onClick?: React.MouseEventHandler; className?: string; editable?: boolean; 'aria-label'?: string; } export const SearchCheckbox: FC = memo( ({ onClick, className, checked = false, editable = false, 'aria-label': ariaLabel }) => { return editable ? (
) : null; } ); SearchCheckbox.displayName = 'SearchCheckbox';