kibana/x-pack/plugins/lens/public/indexpattern_datasource/lens_field_icon.tsx
Tim Roes ebbc062689
Move Lens frontend to Kibana Platform (#62965)
* 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
2020-04-15 12:22:37 +02:00

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}
/>
);
}