/** * Demo Credentials Modal * Displays demo login credentials for testing the live application */ 'use client'; import { useState } from 'react'; import { Link } from '@/lib/i18n/routing'; import { Copy, Check } from 'lucide-react'; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; interface DemoCredentialsModalProps { open: boolean; onClose: () => void; } export function DemoCredentialsModal({ open, onClose }: DemoCredentialsModalProps) { const [copiedRegular, setCopiedRegular] = useState(false); const [copiedAdmin, setCopiedAdmin] = useState(false); const regularCredentials = 'demo@example.com\nDemoPass1234!'; const adminCredentials = 'admin@example.com\nAdminPass1234!'; const copyToClipboard = async (text: string, type: 'regular' | 'admin') => { try { await navigator.clipboard.writeText(text); if (type === 'regular') { setCopiedRegular(true); setTimeout(() => setCopiedRegular(false), 2000); } else { setCopiedAdmin(true); setTimeout(() => setCopiedAdmin(false), 2000); } } catch (err) { console.error('Failed to copy:', err); } }; return ( Try the Live Demo Use these credentials to explore the template's features. Both accounts are pre-configured with sample data.
{/* Regular User Credentials */}

Regular User

Email: demo@example.com

Password: DemoPass1234!

What you can access:

  • User settings & profile
  • Password management
  • Active sessions
  • Personal preferences
{/* Admin User Credentials */}

Admin User (Superuser)

Email: admin@example.com

Password: AdminPass1234!

What you can access:

  • Full admin dashboard
  • User management
  • Analytics & charts
  • Bulk operations
); }