import { Head } from '@inertiajs/react';
import { Construction } from 'lucide-react';
import AppLayout from '@/layouts/AppLayout';

export default function EnConstruccion({ titulo, ruta }: { titulo: string; ruta: string }) {
    return (
        <AppLayout>
            <Head title={titulo} />
            <h1 className="text-2xl font-extrabold">{titulo}</h1>
            <div className="mt-6 grid place-items-center rounded-2xl border border-dashed border-slate-300 bg-white p-16 text-center">
                <Construction className="mb-3 size-10 text-ibero-orange" />
                <p className="font-semibold">Pantalla en construcción</p>
                <p className="mt-1 text-sm text-slate-500">
                    Se está migrando desde la app anterior (<code>{ruta}</code>).
                </p>
            </div>
        </AppLayout>
    );
}
