import { useAuth } from '../context/AuthContext'

export function DeliveryDashboardPage() {
    const { user, logout } = useAuth()

    return (
        <div className="min-h-screen bg-gray-100 p-8">
            <div className="mx-auto max-w-7xl">
                <div className="flex items-center justify-between rounded-lg bg-white p-6 shadow">
                    <div>
                        <h1 className="text-2xl font-bold text-gray-900">Painel do Entregador</h1>
                        <p className="text-gray-600">Bem-vindo, {user?.name}</p>
                    </div>
                    <button
                        onClick={logout}
                        className="rounded bg-red-600 px-4 py-2 font-bold text-white hover:bg-red-700"
                    >
                        Sair
                    </button>
                </div>

                <div className="mt-8 rounded-lg bg-white p-6 shadow">
                    <h3 className="text-lg font-bold">Minhas Entregas</h3>
                    <p className="mt-2 text-gray-600">Visualize as entregas pendentes e o mapa de rotas.</p>
                    {/* Map Integration would go here */}
                </div>
            </div>
        </div>
    )
}
