import { Trans } from '@grafana/i18n';
import { Button, Spinner } from '@grafana/ui';
import { Repository, useCreateRepositoryTestMutation } from 'app/api/clients/provisioning/v0alpha1';
interface Props {
repository: Repository;
}
export function CheckRepository({ repository }: Props) {
const [testRepo, testQuery] = useCreateRepositoryTestMutation();
const name = repository.metadata?.name;
const onClick = () => {
if (!name) {
return;
}
testRepo({ name, body: {} });
};
if (testQuery.isLoading) {
return ;
}
return (
<>
>
);
}