import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { useEditContext } from "../../client-components";
export function PreviewInfo() {
    const editContext = useEditContext();
    if (!editContext)
        return null;
    return (_jsx("div", { className: "flex items-center gap-3", children: _jsxs("div", { className: "text-white", children: ["Welcome to your page ", _jsx("b", { children: "preview" }), ", ", editContext.user?.fullName, "!", _jsxs("div", { className: "text-xs text-gray-300", children: [editContext.item?.path, " ", editContext.item?.language, " ", editContext.item?.version] })] }) }));
}
//# sourceMappingURL=PreviewInfo.js.map