feat: update login and logout components and labels

This commit is contained in:
Maximilian Liebmann 2025-05-04 04:36:11 +02:00 committed by SomeCodecat
parent 4d781775e3
commit 486e8cc1f8
6 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,24 @@
import { signIn } from '@/auth';
import Button from '../button';
import { faOpenid } from '@fortawesome/free-brands-svg-icons';
export default function Login({
provider,
providerDisplayName,
}: {
provider: string;
providerDisplayName: string;
}) {
return (
<form
action={async () => {
'use server';
await signIn(provider);
}}
>
<Button type='submit' mode='warning' icon={faOpenid} width={250}>
Login with {providerDisplayName}
</Button>
</form>
);
}