mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 04:21:52 +00:00
22 lines
465 B
TypeScript
22 lines
465 B
TypeScript
"use client";
|
|
|
|
import { Button } from "@nextui-org/react";
|
|
import React from "react";
|
|
import { useFormStatus } from "react-dom";
|
|
|
|
import { DeleteIcon } from "../icons";
|
|
|
|
export const ButtonDeleteProvider = () => {
|
|
const { pending } = useFormStatus();
|
|
return (
|
|
<Button
|
|
variant="light"
|
|
spinner={pending ? "Removing..." : "Remove"}
|
|
type="submit"
|
|
area-disabled={pending}
|
|
>
|
|
<DeleteIcon size={20} /> Delete
|
|
</Button>
|
|
);
|
|
};
|