mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
delete: remove old component
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import { Button, CircularProgress } from "@nextui-org/react";
|
||||
import clsx from "clsx";
|
||||
import { useFormStatus } from "react-dom";
|
||||
|
||||
interface CustomButtonClientActionProps {
|
||||
buttonLabel: string;
|
||||
danger?: boolean;
|
||||
}
|
||||
|
||||
export const CustomButtonClientAction = ({
|
||||
buttonLabel,
|
||||
danger = false,
|
||||
}: CustomButtonClientActionProps) => {
|
||||
const { pending } = useFormStatus();
|
||||
|
||||
return (
|
||||
<Button
|
||||
className={clsx("m-0 h-fit min-w-min border-none bg-transparent p-0", {
|
||||
"text-danger": danger,
|
||||
})}
|
||||
spinner={<CircularProgress aria-label="Loading..." size="sm" />}
|
||||
type="submit"
|
||||
area-disabled={pending}
|
||||
>
|
||||
{buttonLabel}
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
@@ -5,4 +5,3 @@ export * from "./custom-dropdown-filter";
|
||||
export * from "./custom-input";
|
||||
export * from "./custom-loader";
|
||||
export * from "./custom-radio";
|
||||
export * from "./CustomButtonClientAction";
|
||||
|
||||
Reference in New Issue
Block a user