'use client' import { useState } from 'react' import { Copy, Check } from 'lucide-react' import type { DemoCredentials } from '@/content/schemas/manifesto' interface CredentialsBoxProps { credentials: DemoCredentials } export function CredentialsBox({ credentials }: CredentialsBoxProps) { const [copiedEmail, setCopiedEmail] = useState(false) const [copiedPassword, setCopiedPassword] = useState(false) const copyToClipboard = async (text: string, type: 'email' | 'password') => { try { await navigator.clipboard.writeText(text) if (type === 'email') { setCopiedEmail(true) setTimeout(() => setCopiedEmail(false), 2000) } else { setCopiedPassword(true) setTimeout(() => setCopiedPassword(false), 2000) } } catch (err) { console.error('Failed to copy:', err) } } return (
{credentials.note}