mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
20 lines
369 B
TypeScript
20 lines
369 B
TypeScript
'use client';
|
|
import { useConfig } from '@/components/hooks';
|
|
import LoginForm from './LoginForm';
|
|
import styles from './LoginPage.module.css';
|
|
|
|
export function LoginPage() {
|
|
const config = useConfig();
|
|
|
|
if (config?.loginDisabled) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<div className={styles.page}>
|
|
<LoginForm />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default LoginPage;
|