import React, { FC } from 'react'; import { selectors } from '@grafana/e2e-selectors'; import { InlineField, InlineSwitch, Input } from '@grafana/ui'; export interface Props { dataSourceName: string; isDefault: boolean; onNameChange: (name: string) => void; onDefaultChange: (value: boolean) => void; } const BasicSettings: FC = ({ dataSourceName, isDefault, onDefaultChange, onNameChange }) => { return (
onNameChange(event.currentTarget.value)} required aria-label={selectors.pages.DataSource.name} />
) => { onDefaultChange(event.currentTarget.checked); }} />
); }; export default BasicSettings;