mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
29 lines
798 B
TypeScript
29 lines
798 B
TypeScript
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-sm-shark items-center justify-center gap-[0.625rem] rounded-xl border-[1.5px] border-sm-white px-6 py-5 hover:bg-sm-shark-alt",
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
<span className="aspect-square">{authIcon}</span>
|
|
<span className="text-sm-white text-left text-[0.875rem] tracking-[-0.2px] leading-[1.25rem]">
|
|
Continue with {authProvider}
|
|
</span>
|
|
</Button>
|
|
);
|
|
}
|