import React, { FC } from 'react'; import { Input, Field, FieldSet, Button, Form } from '@grafana/ui'; import { contextSrv } from 'app/core/core'; import { AccessControlAction } from 'app/types'; export interface Props { orgName: string; onSubmit: (orgName: string) => void; } interface FormDTO { orgName: string; } const OrgProfile: FC = ({ onSubmit, orgName }) => { const canWriteOrg = contextSrv.hasPermission(AccessControlAction.OrgsWrite); return (
onSubmit(orgName)}> {({ register }) => (
)}
); }; export default OrgProfile;