kibana/x-pack/plugins/osquery/public/live_queries/index.tsx
2021-04-19 20:10:34 +02:00

22 lines
692 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
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import React from 'react';
import { LiveQueryForm } from './form';
import { FormData } from '../shared_imports';
interface LiveQueryProps {
defaultValue?: Partial<FormData> | undefined;
onSuccess?: () => void;
}
const LiveQueryComponent: React.FC<LiveQueryProps> = ({ defaultValue, onSuccess }) => (
<LiveQueryForm defaultValue={defaultValue} onSuccess={onSuccess} />
);
export const LiveQuery = React.memo(LiveQueryComponent);