first commit

This commit is contained in:
2024-01-15 23:13:55 +01:00
commit 39705a7b43
286 changed files with 47391 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import React, { ComponentPropsWithRef } from 'react'
import { Button } from '../ui/button'
import { Icons } from '../icons'
export function LoadingButton({
loading,
children,
...props
}: ComponentPropsWithRef<typeof Button> & { loading?: boolean }) {
return (
<Button {...props} data-testid="loading-button">
{loading && <Icons.spinner className="animate-spin w-8 h-8 mr-2" />}
{children}
</Button>
)
}