// SPDX-License-Identifier: AGPL-3.0-or-later import styles from '@app/features/auth/flow/AuthPageStyles.module.css'; import {GuildBadge} from '@app/features/guild/components/GuildBadge'; import type {ReactNode} from 'react'; interface AuthPageHeaderStatProps { value: string | number; dot?: 'online' | 'offline'; } interface AuthPageHeaderProps { icon: ReactNode; title: string; subtitle: string; features?: ReadonlyArray; stats?: Array; } export function AuthPageHeader({icon, title, subtitle, features, stats}: AuthPageHeaderProps) { return (
{icon}

{title}

{subtitle}

{features && }
{stats && stats.length > 0 && (
{stats.map((stat, index) => (
{stat.dot === 'online' && (
)} {stat.dot === 'offline' && (
)} {stat.value}
))}
)}
); }