Files
grafana/public/app/core/components/Select/NoOptionsMessage.tsx

21 lines
559 B
TypeScript
Raw Normal View History

import React from 'react';
2018-12-16 09:58:37 +01:00
import { components } from '@torkelo/react-select';
import { OptionProps } from '@torkelo/react-select/lib/components/Option';
2018-10-07 21:08:22 +02:00
export interface Props {
children: Element;
}
export const NoOptionsMessage = (props: OptionProps<any>) => {
const { children } = props;
2018-10-07 21:08:22 +02:00
return (
<components.Option {...props}>
<div className="gf-form-select-box__desc-option">
<div className="gf-form-select-box__desc-option__body">{children}</div>
</div>
2018-10-07 21:08:22 +02:00
</components.Option>
);
};
export default NoOptionsMessage;