hts/apps/migrant/app/[locale]/auth/oauth-button.tsx

19 lines
507 B
TypeScript

"use client";
import { PropsWithChildren } from "react";
type Props = {
onClick: () => Promise<unknown>;
};
export const OAuthButton: React.FC<PropsWithChildren<Props>> = ({ onClick, children }) => {
return (
<button
type="button"
className="flex items-center justify-center h-10 gap-2 px-4 text-sm font-semibold text-white duration-500 border rounded-lg bg-white/10 hover:bg-white hover:text-black border-white/10"
onClick={onClick}
>
{children}
</button>
);
};