import React from 'react'; import { LegacyForms } from '@grafana/ui'; const { FormField } = LegacyForms; type Props = { value: string; onChange: (value: string) => void; }; export const MaxLinesField = (props: Props) => { const { value, onChange } = props; return ( onChange(event.currentTarget.value)} spellCheck={false} placeholder="1000" /> } tooltip={ <> Loki queries must contain a limit of the maximum number of lines returned (default: 1000). Increase this limit to have a bigger result set for ad-hoc analysis. Decrease this limit if your browser becomes sluggish when displaying the log results. } /> ); };