mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-30 15:24:22 +00:00
feat: method POST to check the provider connection is working
This commit is contained in:
8 files changed
+122
-33
No files matched your search
@@ -0,0 +1,21 @@
|
||||
"use client";
|
||||
|
||||
import { Button } from "@nextui-org/react";
|
||||
import React from "react";
|
||||
import { useFormStatus } from "react-dom";
|
||||
|
||||
import { CheckIcon } from "../icons";
|
||||
|
||||
export const ButtonCheckConnectionProvider = () => {
|
||||
const { pending } = useFormStatus();
|
||||
return (
|
||||
<Button
|
||||
variant="light"
|
||||
spinner={pending ? "Checking..." : " Check"}
|
||||
type="submit"
|
||||
area-disabled={pending}
|
||||
>
|
||||
<CheckIcon size={20} /> Check connection
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user