blob: 04f05af30541926a0804cc6212d1f8db6b2fe0af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import { cn } from "@lib/utils";
import { Button } from "@ui/components/button";
interface ExternalAuthButtonProps extends React.ComponentProps<typeof Button> {
authProvider: string;
authIcon: React.ReactNode;
}
export function ExternalAuthButton({
authProvider,
authIcon,
className,
...props
}: ExternalAuthButtonProps) {
return (
<Button
className={cn(
"flex flex-grow cursor-pointer max-w-full bg-background items-center justify-center gap-[0.625rem] rounded-xl border-[1.5px] border-border px-6 py-5 hover:bg-accent",
className,
)}
{...props}
>
<span className="aspect-square">{authIcon}</span>
<span className="text-foreground text-left text-[0.875rem] tracking-[-0.2px] leading-[1.25rem]">
Continue with {authProvider}
</span>
</Button>
);
}
|