🚧 create blueprint form

This commit is contained in:
Fred KISSIE
2025-10-24 04:17:13 +02:00
parent 23b13f0a0e
commit 038f8829c2
8 changed files with 381 additions and 6 deletions

View File

@@ -71,8 +71,16 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
disabled={loading || props.disabled} // Disable button when loading
{...props}
>
{loading && <Loader2 className="mr-2 h-4 w-4 animate-spin" />}
{props.children}
{asChild ? (
props.children
) : (
<>
{loading && (
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
)}
{props.children}
</>
)}
</Comp>
);
}