"use client"; import { Button } from "@/components/ui/button"; import { signIn } from "@/lib/auth/auth-client"; import { JSX } from "react"; export type AuthButtonProps = { providers: SocialProviderType[]; }; export type SocialProviderType = { id: | "github" | "apple" | "discord" | "facebook" | "microsoft" | "google" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk"; name: string; icon: JSX.Element; }; export const SocialAuthButton = (props: AuthButtonProps): JSX.Element => { return (
{props.providers.map((provider) => ( ))}
); };