'use client' import { localizedModePath, modeFromPathname, type Locale } from '@/lib/localization/config' import Image from 'next/image' import { usePathname } from 'next/navigation' import type { ReactNode } from 'react' import styles from './AuthShell.module.css' interface AuthShellProps { locale: Locale title: string subtitle?: string children: ReactNode } export function AuthShell({ locale, title, subtitle, children }: AuthShellProps) { const mode = modeFromPathname(usePathname()) return (
RentalDriveGo

{title}

{subtitle ? (

{subtitle}

) : null}
{children}
) }