import React from 'react';
import { Clock } from 'lucide-react';

export default function ComingSoon({ title }) {
    return (
        <>
            <main className="p-8 max-w-7xl mx-auto flex flex-col items-center justify-center min-h-[60vh] space-y-6">
                <div className="w-24 h-24 bg-gray-50 rounded-full flex items-center justify-center text-gray-300 animate-pulse">
                    <Clock size={48} />
                </div>
                <div className="text-center space-y-2">
                    <h1 className="text-3xl font-black text-gray-900 tracking-tight uppercase">Module Coming Soon</h1>
                    <p className="text-gray-400 font-medium max-w-md mx-auto">
                        We are currently working hard to bring you the {title || 'requested'} module. Stay tuned for updates!
                    </p>
                </div>
                <button 
                    onClick={() => window.location.href = '/receptionist/dashboard'}
                    className="px-8 py-3 bg-red-500 text-white rounded-full font-black uppercase text-xs tracking-widest hover:bg-red-600 transition-colors shadow-lg shadow-red-100"
                >
                    Back to Dashboard
                </button>
            </main>
        </>
    );
}
