intial
This commit is contained in:
13
src/components/global/form-fields/button.submit.tsx
Normal file
13
src/components/global/form-fields/button.submit.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import { ReloadIcon } from "@radix-ui/react-icons";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
export default function ButtonSubmit({ label, disabled, loading }: { label: string, disabled?: boolean, loading?: boolean }) {
|
||||
return (
|
||||
<Button type="submit" disabled={disabled || loading} className="w-full">
|
||||
{loading && <ReloadIcon className="mr-2 h-4 w-4 animate-spin" />}
|
||||
{label}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user