ebbc062689
* Move Lens frontend to Kibana platform * Fix line breaks * Fix jest tests * Fix remaining test * Remove old Lens plugin entry * Fix i18n prefix * Add config schema * Address review
20 lines
691 B
TypeScript
20 lines
691 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { FieldIcon, FieldIconProps } from '../../../../../src/plugins/kibana_react/public';
|
|
import { DataType } from '../types';
|
|
import { normalizeOperationDataType } from './utils';
|
|
|
|
export function LensFieldIcon({ type, ...rest }: FieldIconProps & { type: DataType }) {
|
|
return (
|
|
<FieldIcon
|
|
className="lnsFieldListPanel__fieldIcon"
|
|
type={normalizeOperationDataType(type)}
|
|
{...rest}
|
|
/>
|
|
);
|
|
}
|