MeetUp/src/components/buttons/sso-login-button.tsx
Maximilian Liebmann 9191eb3df0
Some checks failed
tests / Tests (pull_request) Has been cancelled
docker-build / docker (pull_request) Has been cancelled
container-scan / Container Scan (pull_request) Has been cancelled
feat: Implement settings dropdown and page components
- Added `SettingsDropdown` component for selecting settings sections with icons and descriptions.
- Created `SettingsPage` component to manage user settings, including account details, notifications, calendar availability, privacy, and appearance.
- Introduced `SettingsSwitcher` for selecting options within settings.
- Integrated command and dialog components for improved user interaction.
- Updated `UserDropdown` to include links for settings and logout.
- Refactored button styles and card footer layout for consistency.
- Added popover functionality for dropdown menus.
- Updated dependencies in `yarn.lock` for new components.

feat: tempcommit

feat: tempcommit
2025-07-01 00:09:59 +02:00

32 lines
733 B
TypeScript

import { signIn } from '@/auth';
import { IconButton } from '@/components/buttons/icon-button';
import { Fingerprint, ScanEye } from 'lucide-react';
export default function SSOLogin({
provider,
providerDisplayName,
...props
}: {
provider: string;
providerDisplayName: string;
} & React.HTMLAttributes<HTMLButtonElement>) {
return (
<form
className='flex flex-col items-center w-full'
action={async () => {
'use server';
await signIn(provider);
}}
>
<IconButton
className='w-full'
type='submit'
variant='secondary'
icon={Fingerprint}
{...props}
>
Login with {providerDisplayName}
</IconButton>
</form>
);
}