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: "bg-neutral-grey-5 fixed inset-0 flex items-center justify-center p-4", children: _jsxs("div", { className: "w-full max-w-md rounded-lg bg-white p-8 text-center shadow-md", children: [_jsx("div", { className: "mb-4 flex justify-center", children: _jsx(AlertCircle, { strokeWidth: 1, className: "text-feedback-orange h-12 w-12" }) }), _jsx("h1", { className: "text-neutral-grey-100 mb-2 text-2xl font-medium", children: "Administrator Access Required" }), _jsx("p", { className: "text-neutral-grey-50 mb-6", children: "Parhelia requires initial setup. Please log in as a Sitecore administrator to configure the system." }), _jsxs(Button, { onClick: handleLogin, className: "flex w-full items-center justify-center gap-2", children: [_jsx(LogIn, { strokeWidth: 1, className: "h-4 w-4" }), "Go to Sitecore Login"] })] }) }));
}
//# sourceMappingURL=AdminRequiredView.js.map