import React from 'react'; import { StandardEditorProps } from '@grafana/data'; import { Switch } from '@grafana/ui'; export function PaginationEditor({ onChange, value, context }: StandardEditorProps) { const changeValue = (event: React.FormEvent | undefined) => { if (event?.currentTarget.checked) { context.options.footer.show = false; } onChange(event?.currentTarget.checked); }; return ; }