import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { AlertCircle, LogIn } from "lucide-react";
import { Button } from "../components/ui/button";
export function AdminRequiredView() {
    const handleLogin = () => {
        window.location.href = "/sitecore/login?returnUrl=" + encodeURIComponent(window.location.pathname);
    };
    return (_jsx("div", { className: "fixed inset-0 flex items-center justify-center bg-gray-50 p-4", children: _jsxs("div", { className: "w-full max-w-md rounded-lg bg-white p-8 shadow-md text-center", children: [_jsx("div", { className: "mb-4 flex justify-center", children: _jsx(AlertCircle, { className: "h-12 w-12 text-amber-600" }) }), _jsx("h1", { className: "text-2xl font-semibold text-gray-900 mb-2", children: "Administrator Access Required" }), _jsx("p", { className: "text-gray-600 mb-6", children: "Parhelia requires initial setup. Please log in as a Sitecore administrator to configure the system." }), _jsxs(Button, { onClick: handleLogin, className: "w-full flex items-center justify-center gap-2", children: [_jsx(LogIn, { className: "h-4 w-4" }), "Go to Sitecore Login"] })] }) }));
}
//# sourceMappingURL=AdminRequiredView.js.map