mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
21 lines
559 B
TypeScript
21 lines
559 B
TypeScript
import React from 'react';
|
|
import { components } from '@torkelo/react-select';
|
|
import { OptionProps } from '@torkelo/react-select/lib/components/Option';
|
|
|
|
export interface Props {
|
|
children: Element;
|
|
}
|
|
|
|
export const NoOptionsMessage = (props: OptionProps<any>) => {
|
|
const { children } = props;
|
|
return (
|
|
<components.Option {...props}>
|
|
<div className="gf-form-select-box__desc-option">
|
|
<div className="gf-form-select-box__desc-option__body">{children}</div>
|
|
</div>
|
|
</components.Option>
|
|
);
|
|
};
|
|
|
|
export default NoOptionsMessage;
|